diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-04-15 00:02:59 +0000 |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-04-15 00:02:59 +0000 |
commit | a921c3f9497513ec3fcb10a367368b2efc2303d2 (patch) | |
tree | 0e17c9808475e40bfad54db43529ad01d411e6c2 /test/option | |
parent | cf40c416003fbeb0e9781a79942bca2595ea127b (diff) | |
download | scons-a921c3f9497513ec3fcb10a367368b2efc2303d2.tar.gz |
http://scons.tigris.org/issues/show_bug.cgi?id=2345
Apply the first part of the 'raise' fixer (the three-argument cases are not
converted and will need to wait until native support of with_traceback() is
available).
Diffstat (limited to 'test/option')
-rw-r--r-- | test/option/debug-stacktrace.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/option/debug-stacktrace.py b/test/option/debug-stacktrace.py index b29b39d0..fcc4c1bd 100644 --- a/test/option/debug-stacktrace.py +++ b/test/option/debug-stacktrace.py @@ -34,7 +34,7 @@ test = TestSCons.TestSCons() test.write('SConstruct', """\ def kfile_scan(node, env, target): - raise Exception, "kfile_scan error" + raise Exception("kfile_scan error") kscan = Scanner(name = 'kfile', function = kfile_scan, @@ -57,7 +57,7 @@ test.run(arguments = "--debug=stacktrace", lines = [ "scons: *** [foo] Exception : kfile_scan error", "scons: internal stack trace:", - 'raise Exception, "kfile_scan error"', + 'raise Exception("kfile_scan error")', ] test.must_contain_all_lines(test.stderr(), lines) @@ -69,7 +69,7 @@ test.must_contain_all_lines(test.stderr(), lines) test.write('SConstruct', """\ import SCons.Errors -raise SCons.Errors.UserError, "explicit UserError!" +raise SCons.Errors.UserError("explicit UserError!") """) test.run(arguments = '--debug=stacktrace', |