Skip to content

Commit 94c5b66

Browse files
committed
In tests, force deterministic ordering on extras_require so tests pass.
1 parent 636070d commit 94c5b66

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

setuptools/tests/test_dist.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from __future__ import unicode_literals
44

55
import io
6+
import collections
7+
68
from setuptools.dist import DistDeprecationWarning, _get_unpatched
79
from setuptools import Distribution
810
from setuptools.extern.six.moves.urllib.request import pathname2url
@@ -266,10 +268,10 @@ def test_maintainer_author(name, attrs, tmpdir):
266268

267269

268270
def test_provides_extras_deterministic_order():
269-
attrs = dict(extras_require=dict(
270-
a=['foo'],
271-
b=['bar'],
272-
))
271+
extras = collections.OrderedDict()
272+
extras['a'] = ['foo']
273+
extras['b'] = ['bar']
274+
attrs = dict(extras_require=extras)
273275
dist = Distribution(attrs)
274276
assert dist.metadata.provides_extras == ['a', 'b']
275277
attrs['extras_require'] = dict(

0 commit comments

Comments
 (0)