aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_egg_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/tests/test_egg_info.py')
-rw-r--r--setuptools/tests/test_egg_info.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index 8fbf1323..3a0db58f 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -84,7 +84,8 @@ class TestEggInfo(object):
assert 'tag_date = 0' in content
assert 'tag_svn_revision = 0' in content
- expected_order = 'tag_date', 'tag_svn_revision', 'tag_build'
+ expected_order = 'tag_build', 'tag_date', 'tag_svn_revision'
+
self._validate_content_order(content, expected_order)
@staticmethod
@@ -93,6 +94,10 @@ class TestEggInfo(object):
Assert that the strings in expected appear in content
in order.
"""
+ if sys.version_info < (2, 7):
+ # On Python 2.6, expect dict key order.
+ expected = dict.fromkeys(expected).keys()
+
pattern = '.*'.join(expected)
flags = re.MULTILINE | re.DOTALL
assert re.search(pattern, content, flags)
@@ -129,11 +134,6 @@ class TestEggInfo(object):
expected_order = 'tag_build', 'tag_date', 'tag_svn_revision'
- if sys.version_info < (2, 7):
- # On Python 2.6, config gets overridden, retaining order
- # from the dict.
- expected_order = dict.fromkeys(expected_order).keys()
-
self._validate_content_order(content, expected_order)
def test_egg_base_installed_egg_info(self, tmpdir_cwd, env):