summaryrefslogtreecommitdiffstats
path: root/test/overrides.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-04-07 00:58:04 (GMT)
committerSteven Knight <knight@baldmt.com>2004-04-07 00:58:04 (GMT)
commitd21d3d896c0b48d1b0db26cb91d568b07c113377 (patch)
treecf95a3315adc04a859cd2127c3d76fa9359b5372 /test/overrides.py
parent2b0511411ccc0da6857e16c08706e08a04c27112 (diff)
downloadSCons-d21d3d896c0b48d1b0db26cb91d568b07c113377.zip
SCons-d21d3d896c0b48d1b0db26cb91d568b07c113377.tar.gz
SCons-d21d3d896c0b48d1b0db26cb91d568b07c113377.tar.bz2
Make the targets/sources warnings test pass regardless of dictionary order.
Diffstat (limited to 'test/overrides.py')
-rw-r--r--test/overrides.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/overrides.py b/test/overrides.py
index eb43ced..fa76b56 100644
--- a/test/overrides.py
+++ b/test/overrides.py
@@ -115,14 +115,14 @@ test.write('mylink.py',"""
open('goodbye.not_exe', 'wt').write('this is not a program!')
""")
-test.run(arguments='goodbye.not_exe', stderr="""\
-
-scons: warning: Did you mean to use `target' instead of `targets'?
-File "SConstruct", line 8, in ?
-
-scons: warning: Did you mean to use `source' instead of `sources'?
-File "SConstruct", line 8, in ?
-""")
+test.run(arguments='goodbye.not_exe', stderr=None)
+test.fail_test(not test.match_re(test.stderr(), r"""
+scons: warning: Did you mean to use `(target|source)' instead of `(targets|sources)'\?
+File "SConstruct", line \d+, in .+
+
+scons: warning: Did you mean to use `(target|source)' instead of `(targets|sources)'\?
+File "SConstruct", line \d+, in .+
+"""))
assert test.read('goodbye.not_obj') == 'this is no object file!'
assert test.read('goodbye.not_exe') == 'this is not a program!'