summaryrefslogtreecommitdiffstats
path: root/test/option/profile.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/option/profile.py')
-rw-r--r--test/option/profile.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/option/profile.py b/test/option/profile.py
index 9207066..eb6b394 100644
--- a/test/option/profile.py
+++ b/test/option/profile.py
@@ -24,7 +24,6 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
-import pstats
import string
import StringIO
import sys
@@ -33,6 +32,11 @@ import TestSCons
test = TestSCons.TestSCons()
+try:
+ import pstats
+except ImportError:
+ test.skip_test('No pstats module, skipping test.\n')
+
test.write('SConstruct', """\
Command('file.out', 'file.in', Copy("$TARGET", "$SOURCE"))
""")