summaryrefslogtreecommitdiffstats
path: root/test/Progress
diff options
context:
space:
mode:
Diffstat (limited to 'test/Progress')
-rw-r--r--test/Progress/TARGET.py3
-rw-r--r--test/Progress/file.py3
-rw-r--r--test/Progress/spinner.py3
3 files changed, 3 insertions, 6 deletions
diff --git a/test/Progress/TARGET.py b/test/Progress/TARGET.py
index c2b4213..d7ff3c9 100644
--- a/test/Progress/TARGET.py
+++ b/test/Progress/TARGET.py
@@ -30,7 +30,6 @@ overwriting it by setting the overwrite= keyword argument.
"""
import os
-import string
import TestSCons
@@ -59,7 +58,7 @@ S1.in\r \rS1.out\rCopy("S1.out", "S1.in")
\rSConstruct\r \r.\r"""
if os.linesep != '\n':
- expect = string.replace(expect, '\n', os.linesep)
+ expect = expect.replace('\n', os.linesep)
test.run(arguments = '-Q .', stdout=expect)
diff --git a/test/Progress/file.py b/test/Progress/file.py
index 6095fb0..3184a5b 100644
--- a/test/Progress/file.py
+++ b/test/Progress/file.py
@@ -30,7 +30,6 @@ progress output.
"""
import os
-import string
import TestSCons
@@ -74,7 +73,7 @@ stderr: .
"""
if os.linesep != '\n':
- expect = string.replace(expect, '\n', os.linesep)
+ expect = expect.replace('\n', os.linesep)
test.must_match('progress.out', expect)
diff --git a/test/Progress/spinner.py b/test/Progress/spinner.py
index 0919b44..85ca32f 100644
--- a/test/Progress/spinner.py
+++ b/test/Progress/spinner.py
@@ -30,7 +30,6 @@ that represents a canonical "spinner" on the output.
"""
import os
-import string
import TestSCons
@@ -59,7 +58,7 @@ expect = """\
\\\r|\r"""
if os.linesep != '\n':
- expect = string.replace(expect, '\n', os.linesep)
+ expect = expect.replace('\n', os.linesep)
test.run(arguments = '-Q .', stdout=expect)