diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-24 08:29:36 (GMT) |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-24 08:29:36 (GMT) |
commit | c4c2ba91c671527828fbc6ffb79421d5e487a398 (patch) | |
tree | c6fa3299dd54d4764e6e3d4225b7d32d0bc17395 /test/CC/CC.py | |
parent | 9e87609dfac0fd6a87d2cdc0a9e4e8b5c0a6a99a (diff) | |
download | SCons-c4c2ba91c671527828fbc6ffb79421d5e487a398.zip SCons-c4c2ba91c671527828fbc6ffb79421d5e487a398.tar.gz SCons-c4c2ba91c671527828fbc6ffb79421d5e487a398.tar.bz2 |
Updating tests to use fixture wrapper.py.
Diffstat (limited to 'test/CC/CC.py')
-rw-r--r-- | test/CC/CC.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/CC/CC.py b/test/CC/CC.py index 7478cbe..f6c2954 100644 --- a/test/CC/CC.py +++ b/test/CC/CC.py @@ -139,13 +139,7 @@ env.Program(target = 'test2', source = 'test2.C') test.run(arguments = '.', stderr = None) test.must_match('test2' + _exe, "This is a .C file.\n") -test.write("wrapper.py", -"""import os -import sys -if '--version' not in sys.argv and '-dumpversion' not in sys.argv: - open('%s', 'wb').write(b"wrapper.py\\n") -os.system(" ".join(sys.argv[1:])) -""" % test.workpath('wrapper.out').replace('\\', '\\\\')) +test.file_fixture('wrapper.py') test.write('SConstruct', """ foo = Environment() |