diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-03-25 04:14:28 +0000 |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-03-25 04:14:28 +0000 |
commit | af6d7c35464bb75dcabc72094b4bd84154dde50d (patch) | |
tree | 0984fd581082c27cfbfbb7f94d5751b0e6fd2741 /test/runtest | |
parent | 55ef7fe83e3211be3045f089767ca8e198db1c2c (diff) | |
download | scons-af6d7c35464bb75dcabc72094b4bd84154dde50d.tar.gz |
Move 2.0 changes collected in branches/pending back to trunk for further
development. Note that this set of changes is NOT backward-compatible;
the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
Diffstat (limited to 'test/runtest')
-rw-r--r-- | test/runtest/fallback.py | 7 | ||||
-rw-r--r-- | test/runtest/noqmtest.py | 3 | ||||
-rw-r--r-- | test/runtest/python.py | 3 | ||||
-rw-r--r-- | test/runtest/qmtest.py | 3 | ||||
-rw-r--r-- | test/runtest/xml/output.py | 1 |
5 files changed, 6 insertions, 11 deletions
diff --git a/test/runtest/fallback.py b/test/runtest/fallback.py index 6a971f8e..027d79df 100644 --- a/test/runtest/fallback.py +++ b/test/runtest/fallback.py @@ -30,7 +30,6 @@ if it can't find qmtest on the $PATH. """ import os -import string import TestRuntest @@ -42,9 +41,9 @@ test = TestRuntest.TestRuntest(noqmtest=1) while test.where_is('qmtest'): qmtest=test.where_is('qmtest') dir = os.path.split(qmtest)[0] - path = string.split(os.environ['PATH'], os.pathsep) + path = os.environ['PATH'].split(os.pathsep) path.remove(dir) - os.environ['PATH'] = string.join(path, os.pathsep) + os.environ['PATH'] = os.pathsep.join(path) test.subdir('test') @@ -83,7 +82,7 @@ testlist = [ test_pass_py, ] -test.run(arguments = string.join(testlist), +test.run(arguments = ' '.join(testlist), status = 1, stdout = expect_stdout, stderr = expect_stderr) diff --git a/test/runtest/noqmtest.py b/test/runtest/noqmtest.py index 78b021d9..99352a10 100644 --- a/test/runtest/noqmtest.py +++ b/test/runtest/noqmtest.py @@ -30,7 +30,6 @@ using qmtest. """ import os -import string import TestRuntest @@ -75,7 +74,7 @@ testlist = [ test_pass_py, ] -test.run(arguments = '--noqmtest %s' % string.join(testlist), +test.run(arguments = '--noqmtest %s' % ' '.join(testlist), status = 1, stdout = expect_stdout, stderr = expect_stderr) diff --git a/test/runtest/python.py b/test/runtest/python.py index 9579746c..5c2f7377 100644 --- a/test/runtest/python.py +++ b/test/runtest/python.py @@ -30,7 +30,6 @@ Test that the -P option lets us specify a Python version to use. import os import re -import string if not hasattr(os.path, 'pardir'): os.path.pardir = '..' @@ -47,7 +46,7 @@ head, dir = os.path.split(head) mypython = os.path.join(head, dir, os.path.pardir, dir, python) def escape(s): - return string.replace(s, '\\', '\\\\') + return s.replace('\\', '\\\\') if re.search('\s', mypython): mypythonstring = '"%s"' % escape(mypython) diff --git a/test/runtest/qmtest.py b/test/runtest/qmtest.py index 9f9274e3..de04c3fc 100644 --- a/test/runtest/qmtest.py +++ b/test/runtest/qmtest.py @@ -30,7 +30,6 @@ not directly via Python. """ import os.path -import string import TestRuntest @@ -92,7 +91,7 @@ testlist = [ test_pass_py, ] -test.run(arguments='--qmtest %s' % string.join(testlist), +test.run(arguments='--qmtest %s' % ' '.join(testlist), status=1, stdout=expect_stdout) diff --git a/test/runtest/xml/output.py b/test/runtest/xml/output.py index c024f37b..7bf6b2d6 100644 --- a/test/runtest/xml/output.py +++ b/test/runtest/xml/output.py @@ -30,7 +30,6 @@ Test writing XML output to a file. import os import re -import string import TestCmd import TestRuntest |