mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Reformat the exception message by going through a list.
This commit is contained in:
parent
5df2e614e6
commit
d9bfeac330
1 changed files with 3 additions and 1 deletions
|
|
@ -35,7 +35,9 @@ def testCompileLibrary(self):
|
||||||
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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue