summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-03-01 23:24:34 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-03-01 23:24:34 (GMT)
commitd9bfeac33047d17ab829653ec8d1e6822a635984 (patch)
treed44152d27e3b5c535aacaf3aa948437b343b485b /Lib
parent5df2e614e651d91bd433d6de5cd90b304aead70c (diff)
downloadcpython-d9bfeac33047d17ab829653ec8d1e6822a635984.zip
cpython-d9bfeac33047d17ab829653ec8d1e6822a635984.tar.gz
cpython-d9bfeac33047d17ab829653ec8d1e6822a635984.tar.bz2
Reformat the exception message by going through a list.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_compiler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py
index f58e6e5..6ec71ed 100644
--- a/Lib/test/test_compiler.py
+++ b/Lib/test/test_compiler.py
@@ -35,7 +35,9 @@ class CompilerTest(unittest.TestCase):
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):