diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-21 03:07:51 (GMT) |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-21 03:07:51 (GMT) |
commit | 5f4aa5312e2d37a271233d864573772ae2b512fe (patch) | |
tree | 5132b0761e41f0a2c5642875806a784f4ef3a1e7 /test/ZIP/ZIPCOM.py | |
parent | d81a3387f0c6ab528986d25bd57a27f549cd0c91 (diff) | |
download | SCons-5f4aa5312e2d37a271233d864573772ae2b512fe.zip SCons-5f4aa5312e2d37a271233d864573772ae2b512fe.tar.gz SCons-5f4aa5312e2d37a271233d864573772ae2b512fe.tar.bz2 |
Fixed test/ZIP tests.
Diffstat (limited to 'test/ZIP/ZIPCOM.py')
-rw-r--r-- | test/ZIP/ZIPCOM.py | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/test/ZIP/ZIPCOM.py b/test/ZIP/ZIPCOM.py index e982c58..4d84ccf 100644 --- a/test/ZIP/ZIPCOM.py +++ b/test/ZIP/ZIPCOM.py @@ -34,16 +34,7 @@ _python_ = TestSCons._python_ test = TestSCons.TestSCons() - - -test.write('myzip.py', r""" -import sys -outfile = open(sys.argv[1], 'wb') -infile = open(sys.argv[2], 'rb') -for l in [l for l in infile.readlines() if l != '/*zip*/\n']: - outfile.write(l) -sys.exit(0) -""") +test.dir_fixture('ZIPCOM-fixture') test.write('SConstruct', """ env = Environment(TOOLS = ['zip'], @@ -51,17 +42,10 @@ env = Environment(TOOLS = ['zip'], env.Zip('test1.zip', 'test1.in') """ % locals()) -test.write('test1.in', """\ -test1.in -/*zip*/ -""") - test.run() test.must_match('test1.zip', "test1.in\n") - - test.pass_test() # Local Variables: |