diff options
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: |