diff options
author | Greg Noel <GregNoel@tigris.org> | 2010-04-15 00:02:59 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2010-04-15 00:02:59 (GMT) |
commit | 9931fe6c59d330d0dbeea1c51456e3a9f94377d8 (patch) | |
tree | 0e17c9808475e40bfad54db43529ad01d411e6c2 /test/Errors | |
parent | 12ec17eedc70ee82421b27ff7dd84e947d4e6953 (diff) | |
download | SCons-9931fe6c59d330d0dbeea1c51456e3a9f94377d8.zip SCons-9931fe6c59d330d0dbeea1c51456e3a9f94377d8.tar.gz SCons-9931fe6c59d330d0dbeea1c51456e3a9f94377d8.tar.bz2 |
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/Errors')
-rw-r--r-- | test/Errors/InternalError.py | 4 | ||||
-rw-r--r-- | test/Errors/UserError.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/Errors/InternalError.py b/test/Errors/InternalError.py index 49d9fdd..8ed6da1 100644 --- a/test/Errors/InternalError.py +++ b/test/Errors/InternalError.py @@ -37,7 +37,7 @@ test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) test.write('SConstruct', """ assert "InternalError" not in globals() from SCons.Errors import InternalError -raise InternalError, 'error inside' +raise InternalError('error inside') """) test.run(stdout = "scons: Reading SConscript files ...\ninternal error\n", @@ -46,7 +46,7 @@ test.run(stdout = "scons: Reading SConscript files ...\ninternal error\n", File ".+", line \d+, in .+ File ".+", line \d+, in .+ File ".+SConstruct", line \d+, in .+ - raise InternalError, 'error inside' + raise InternalError\('error inside'\) InternalError: error inside """, status=2) diff --git a/test/Errors/UserError.py b/test/Errors/UserError.py index 0212a52..669260d 100644 --- a/test/Errors/UserError.py +++ b/test/Errors/UserError.py @@ -36,7 +36,7 @@ test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) test.write('SConstruct', """ assert "UserError" not in globals() import SCons.Errors -raise SCons.Errors.UserError, 'Depends() requires both sources and targets.' +raise SCons.Errors.UserError('Depends() requires both sources and targets.') """) expect = """ |