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

Reformat the exception message by going through a list.

üst 5df2e614
...@@ -35,7 +35,9 @@ class CompilerTest(unittest.TestCase): ...@@ -35,7 +35,9 @@ class CompilerTest(unittest.TestCase):
try: try:
compiler.compile(buf, basename, "exec") compiler.compile(buf, basename, "exec")
except Exception, e: except Exception, e:
e.args[0] += "[in file %s]" % basename args = list(e.args)
args[0] += "[in file %s]" % basename
e.args = tuple(args)
raise raise
def testNewClassSyntax(self): def testNewClassSyntax(self):
......
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