diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index 298693eb53..d8c4f2f4aa 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -1751,7 +1751,7 @@ class TestA(object): env2.Dictionary()['ZZZ'][5] = 6 assert env1.Dictionary()['XXX'] == env2.Dictionary()['XXX'] assert 4 in env2.Dictionary()['YYY'] - assert not 4 in env1.Dictionary()['YYY'] + assert 4 not in env1.Dictionary()['YYY'] assert 5 in env2.Dictionary()['ZZZ'] assert 5 not in env1.Dictionary()['ZZZ'] diff --git a/test/LEX/live_mingw.py b/test/LEX/live_mingw.py index 13e23429b7..b1a8ea9b71 100644 --- a/test/LEX/live_mingw.py +++ b/test/LEX/live_mingw.py @@ -53,7 +53,7 @@ test.write('SConstruct', """ foo = Environment(tools=['default', 'mingw', 'lex'], LEXUNISTD="") lex = foo.Dictionary('LEX') -bar = Environment(LEX = r'%(_python_)s wrapper.py ' + lex, +bar = Environment(LEX=r'%(_python_)s wrapper.py ' + lex['LEX'], LEXFLAGS = '-b', LEXUNISTD="", tools=['default', 'mingw', 'lex']) diff --git a/test/LEX/no_lex.py b/test/LEX/no_lex.py index 89ffdc70b3..cea98b5b08 100644 --- a/test/LEX/no_lex.py +++ b/test/LEX/no_lex.py @@ -48,7 +48,7 @@ def Detect(self, progs): print(foo.Dictionary('LEX')) """ % locals()) -test.run(arguments = '-Q -s', stdout = 'None\n' ) +test.run(arguments = '-Q -s', stdout = "{'LEX': None\n" ) test.pass_test()