Kaydet (Commit) 15bfc3b0 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Make failures in test cases print failing source file.

üst 20e192b6
......@@ -32,7 +32,11 @@ class CompilerTest(unittest.TestCase):
self.assertRaises(SyntaxError, compiler.compile,
buf, basename, "exec")
else:
compiler.compile(buf, basename, "exec")
try:
compiler.compile(buf, basename, "exec")
except Exception, e:
e.args[0] += "[in file %s]" % basename
raise
def testNewClassSyntax(self):
compiler.compile("class foo():pass\n\n","<string>","exec")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment