summaryrefslogtreecommitdiffstats
path: root/test/Errors/InternalError.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2010-04-15 00:02:59 (GMT)
committerGreg Noel <GregNoel@tigris.org>2010-04-15 00:02:59 (GMT)
commit9931fe6c59d330d0dbeea1c51456e3a9f94377d8 (patch)
tree0e17c9808475e40bfad54db43529ad01d411e6c2 /test/Errors/InternalError.py
parent12ec17eedc70ee82421b27ff7dd84e947d4e6953 (diff)
downloadSCons-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/InternalError.py')
-rw-r--r--test/Errors/InternalError.py4
1 files changed, 2 insertions, 2 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)