summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-02-26 19:52:16 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-02-26 19:52:16 (GMT)
commit399b2673152321c3f719d27334e036c03a579997 (patch)
treeb71ca60a23c59dcc3b61345eeb9e7d8bc2f02234
parentcd9c89842a278f284728a966209cf22a8057e5ce (diff)
downloadSCons-399b2673152321c3f719d27334e036c03a579997.zip
SCons-399b2673152321c3f719d27334e036c03a579997.tar.gz
SCons-399b2673152321c3f719d27334e036c03a579997.tar.bz2
fix test which depended on order of dictionary.items() which changed between py2 and py3
-rw-r--r--src/engine/SCons/EnvironmentTests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py
index e3259d4..c51dd30 100644
--- a/src/engine/SCons/EnvironmentTests.py
+++ b/src/engine/SCons/EnvironmentTests.py
@@ -247,7 +247,9 @@ class SubstitutionTestCase(unittest.TestCase):
"""
env = SubstitutionEnvironment(XXX = 'x', YYY = 'y')
items = list(env.items())
- assert items == [('XXX','x'), ('YYY','y')], items
+ assert len(items) == 2 and ('XXX','x') in items and ('YYY','y') in items, items
+ # Was. This fails under py3 as order changes
+ # assert items == [('XXX','x'), ('YYY','y')], items
def test_arg2nodes(self):
"""Test the arg2nodes method