diff options
author | William Blevins <wblevins@gmail.com> | 2015-03-23 22:38:49 -0400 |
---|---|---|
committer | William Blevins <wblevins@gmail.com> | 2015-03-23 22:38:49 -0400 |
commit | b9db19ac5c40178daf37000c87dec7141659bd4c (patch) | |
tree | 02ffdd1bf3867436dfbbd73959d6c30d13ca5b93 /test/option | |
parent | b9e222b9d0ba04bdb65b1a221893998872547b28 (diff) | |
download | scons-b9db19ac5c40178daf37000c87dec7141659bd4c.tar.gz |
Updated debug-count test case.
Now tests against current interpreter vs default path option.
Diffstat (limited to 'test/option')
-rw-r--r-- | test/option/debug-count.py | 13 |
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() |