summaryrefslogtreecommitdiffstats
path: root/test/option
diff options
context:
space:
mode:
Diffstat (limited to 'test/option')
-rw-r--r--test/option/debug-stacktrace.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/option/debug-stacktrace.py b/test/option/debug-stacktrace.py
index b29b39d..fcc4c1b 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',