summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordirkbaechle <dl9obn@darc.de>2015-04-05 12:19:20 +0200
committerdirkbaechle <dl9obn@darc.de>2015-04-05 12:19:20 +0200
commitf1e7810fcb0dbcf7c44768a4139144d25c3142d6 (patch)
tree1f7b9712478baac619af7ef11567b3d4c0980041
parentf45a0311ac7eb7a09c6a5069aa44a67ba3f61d82 (diff)
parentb9db19ac5c40178daf37000c87dec7141659bd4c (diff)
downloadscons-f1e7810fcb0dbcf7c44768a4139144d25c3142d6.tar.gz
Merged in williamblevins/scons_20150323 (pull request #229)
Updated debug-count test case.
-rw-r--r--test/option/debug-count.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/option/debug-count.py b/test/option/debug-count.py
index 3f8a23c0..39c12224 100644
--- a/test/option/debug-count.py
+++ b/test/option/debug-count.py
@@ -28,6 +28,7 @@ Test that the --debug=count option works.
"""
import re
+import sys
import TestSCons
@@ -85,11 +86,13 @@ scons: warning: --debug=count is not supported when running SCons
\twith the python -O option or optimized \\(.pyo\\) modules.
""" + TestSCons.file_expr
-test.run(arguments = '--debug=count -h',
- interpreter = ['python', '-O'],
- stderr = expect_warning,
- match = TestSCons.match_re)
-
+test.run(
+ arguments = '--debug=count -h',
+ # Test against current interpreter vs default path option.
+ interpreter = [ sys.executable, '-O' ],
+ stderr = expect_warning,
+ match = TestSCons.match_re
+)
test.pass_test()