From 458243d778741340ae33bf92672595c3db08b3f4 Mon Sep 17 00:00:00 2001 From: William Blevins Date: Mon, 23 Mar 2015 22:38:49 -0400 Subject: Updated debug-count test case. Now tests against current interpreter vs default path option. --- test/option/debug-count.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/option/debug-count.py b/test/option/debug-count.py index 3f8a23c..39c1222 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() -- cgit v0.12