summaryrefslogtreecommitdiffstats
path: root/test/ZIP
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2006-02-15 05:14:30 (GMT)
committerSteven Knight <knight@baldmt.com>2006-02-15 05:14:30 (GMT)
commit2708dc3927775a374fc94a6996ebe09e70705e60 (patch)
treee58962d58516f26ff0babcdb67a58435a4019f07 /test/ZIP
parente7190df6b6aa89dac0370dc01ae45ff39254c221 (diff)
downloadSCons-2708dc3927775a374fc94a6996ebe09e70705e60.zip
SCons-2708dc3927775a374fc94a6996ebe09e70705e60.tar.gz
SCons-2708dc3927775a374fc94a6996ebe09e70705e60.tar.bz2
More test portability fixes. (Baptiste Lepilleur and SK)
Diffstat (limited to 'test/ZIP')
-rw-r--r--test/ZIP/ZIP.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ZIP/ZIP.py b/test/ZIP/ZIP.py
index d92c0be..33c54dd 100644
--- a/test/ZIP/ZIP.py
+++ b/test/ZIP/ZIP.py
@@ -35,6 +35,14 @@ python = TestSCons.python
test = TestSCons.TestSCons()
+try:
+ import zipfile
+except ImportError:
+ zip = test.where_is('zip')
+ if not zip:
+ x = "Python version has no 'ziplib' module nor 'zip' utility; skipping tests.\n"
+ test.skip_test(x)
+
test.subdir('sub1')
test.write('myzip.py', r"""\