[Python-checkins] r42761 - python/trunk/Lib/test/test_compiler.py
martin.v.loewis
python-checkins at python.org
Thu Mar 2 00:24:35 CET 2006
Author: martin.v.loewis
Date: Thu Mar 2 00:24:34 2006
New Revision: 42761
Modified:
python/trunk/Lib/test/test_compiler.py
Log:
Reformat the exception message by going through a list.
Modified: python/trunk/Lib/test/test_compiler.py
==============================================================================
--- python/trunk/Lib/test/test_compiler.py (original)
+++ python/trunk/Lib/test/test_compiler.py Thu Mar 2 00:24:34 2006
@@ -35,7 +35,9 @@
try:
compiler.compile(buf, basename, "exec")
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
def testNewClassSyntax(self):
More information about the Python-checkins
mailing list