summaryrefslogtreecommitdiffstats
path: root/test/Delete.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Delete.py')
-rw-r--r--test/Delete.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/Delete.py b/test/Delete.py
index 63e4ab6..47f9d81 100644
--- a/test/Delete.py
+++ b/test/Delete.py
@@ -29,7 +29,6 @@ Verify that the Delete() Action works.
"""
import os.path
-import string
import TestSCons
@@ -180,8 +179,11 @@ test.write('f14.in', "f14.in\n")
test.run(status=2, stderr=None)
-stderr = test.stderr()
-test.fail_test(string.find(stderr, "No such file or directory") == -1 and
- string.find(stderr, "The system cannot find the path specified") == -1)
+fail_strings = [
+ "No such file or directory",
+ "The system cannot find the path specified",
+]
+
+test.must_contain_any_line(test.stderr(), fail_strings)
test.pass_test()