diff options
author | William Deegan <bill@baddogconsulting.com> | 2023-01-29 00:52:07 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2023-01-29 00:52:07 (GMT) |
commit | a220b3f5989db0696d9d03a0988cbcff60e90e59 (patch) | |
tree | f8cce0c05888743c2337bbc1a7a066c056165e4b /test/runtest/python.py | |
parent | e980c5bc26892ce4db1e45516e9983bbc6a2bd33 (diff) | |
parent | 04bc3eaab31c5437764b10ee942b19740b5139c9 (diff) | |
download | SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.zip SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.gz SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.bz2 |
Merge remote-tracking branch 'upstream/master' into fix_configure_marking_up_to_date
Diffstat (limited to 'test/runtest/python.py')
-rw-r--r-- | test/runtest/python.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/test/runtest/python.py b/test/runtest/python.py index 499ab77..abd4f0c 100644 --- a/test/runtest/python.py +++ b/test/runtest/python.py @@ -50,20 +50,12 @@ pythonflags = TestRuntest.pythonflags # getting called with "/bin/../bin/python" as first argument, e.g. Fedora 17 Desktop. mypython = os.path.normpath(os.path.join(head, dir, os.path.pardir, dir, python)) -def escape(s): - return s.replace('\\', '\\\\') - -if re.search(r'\s', mypython): - mypythonstring = '"%s"' % escape(mypython) -else: - mypythonstring = escape(mypython) - test.subdir('test') test.write_passing_test(['test', 'pass.py']) expect_stdout = """\ -%(mypythonstring)s%(pythonflags)s %(test_pass_py)s +%(mypython)s%(pythonflags)s %(test_pass_py)s PASSING TEST STDOUT """ % locals() |