diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-02-26 19:52:16 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-02-26 19:52:16 (GMT) |
commit | 399b2673152321c3f719d27334e036c03a579997 (patch) | |
tree | b71ca60a23c59dcc3b61345eeb9e7d8bc2f02234 | |
parent | cd9c89842a278f284728a966209cf22a8057e5ce (diff) | |
download | SCons-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.py | 4 |
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 |