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,
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)
test.write('SConstruct', """\
import SCons.Errors
-raise SCons.Errors.UserError, "explicit UserError!"
+raise SCons.Errors.UserError("explicit UserError!")
""")
test.run(arguments = '--debug=stacktrace',
test.pass_test()
+
+# Local Variables:
+# tab-width:4
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=4 shiftwidth=4: