diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-03-01 23:24:34 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-03-01 23:24:34 (GMT) |
commit | d9bfeac33047d17ab829653ec8d1e6822a635984 (patch) | |
tree | d44152d27e3b5c535aacaf3aa948437b343b485b /Lib | |
parent | 5df2e614e651d91bd433d6de5cd90b304aead70c (diff) | |
download | cpython-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.py | 4 |
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): |