summaryrefslogtreecommitdiffstats
path: root/test/Scanner-exception.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-07-13 06:13:18 (GMT)
committerSteven Knight <knight@baldmt.com>2004-07-13 06:13:18 (GMT)
commit9d2af963f5da83955b06353104b44ad01c86716c (patch)
tree62dbd0e4ee82caf4bf3202b8aa8e53be76a9f49a /test/Scanner-exception.py
parent321ac083cf44290c309b7021594c3941bfa3f82f (diff)
downloadSCons-9d2af963f5da83955b06353104b44ad01c86716c.zip
SCons-9d2af963f5da83955b06353104b44ad01c86716c.tar.gz
SCons-9d2af963f5da83955b06353104b44ad01c86716c.tar.bz2
Make exception handling thread-safe by using sys.exc_info() instead of sys.exc_{type,value}.
Diffstat (limited to 'test/Scanner-exception.py')
-rw-r--r--test/Scanner-exception.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/Scanner-exception.py b/test/Scanner-exception.py
index 53ae7a0..7615888 100644
--- a/test/Scanner-exception.py
+++ b/test/Scanner-exception.py
@@ -108,11 +108,8 @@ test.write('zzz', "zzz 1\n")
test.run(arguments = '.',
status = 2,
- stderr = None)
-test.fail_test(not test.match_re_dotall(test.stderr(), """\
-scons: \\*\\*\\* kfile_scan error: yyy 1
-scons: internal stack trace:
- File .*
-"""))
+ stderr = """\
+scons: *** kfile_scan error: yyy 1
+""")
test.pass_test()