summaryrefslogtreecommitdiffstats
path: root/test/Errors
diff options
context:
space:
mode:
Diffstat (limited to 'test/Errors')
-rw-r--r--test/Errors/InternalError.py4
-rw-r--r--test/Errors/UserError.py2
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 = """