summaryrefslogtreecommitdiffstats
path: root/test/timestamp-fallback.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-05-31 23:52:14 (GMT)
committerSteven Knight <knight@baldmt.com>2002-05-31 23:52:14 (GMT)
commit78d38667226c4e01ea8d3b1026b2d6db5492d75b (patch)
tree9185720a12ec97d6d360aad1e2d26cb6dae77b86 /test/timestamp-fallback.py
parentb87d8ee0fbcb2e9cbc804e29021a1202112f63c7 (diff)
downloadSCons-78d38667226c4e01ea8d3b1026b2d6db5492d75b.zip
SCons-78d38667226c4e01ea8d3b1026b2d6db5492d75b.tar.gz
SCons-78d38667226c4e01ea8d3b1026b2d6db5492d75b.tar.bz2
Windows NT portability.
Diffstat (limited to 'test/timestamp-fallback.py')
-rw-r--r--test/timestamp-fallback.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/test/timestamp-fallback.py b/test/timestamp-fallback.py
index bfa4600..8f5e262 100644
--- a/test/timestamp-fallback.py
+++ b/test/timestamp-fallback.py
@@ -24,14 +24,24 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import os.path
+import imp
import os
-import string
-import sys
+import os.path
+
import TestSCons
test = TestSCons.TestSCons()
+try:
+ file, name, desc = imp.find_module('md5')
+except ImportError:
+ pass
+else:
+ if desc[2] == imp.C_BUILTIN:
+ print "The 'md5' module is built in to this version of Python."
+ print "Cannot test falling back to timestamps."
+ test.no_result(1);
+
test.write('md5.py', r"""
raise ImportError
""")