[pypy-commit] pypy default: 'Python 2.7 -A' raises TypeError in this corner case.

arigo noreply at buildbot.pypy.org
Tue Sep 6 19:35:00 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r47118:ebe7ce81d5a1
Date: 2011-09-06 19:08 +0200
http://bitbucket.org/pypy/pypy/changeset/ebe7ce81d5a1/

Log:	'Python 2.7 -A' raises TypeError in this corner case.

diff --git a/pypy/objspace/std/test/test_stringformat.py b/pypy/objspace/std/test/test_stringformat.py
--- a/pypy/objspace/std/test/test_stringformat.py
+++ b/pypy/objspace/std/test/test_stringformat.py
@@ -168,7 +168,7 @@
 
     def test_incomplete_format(self):
         raises(ValueError, '%'.__mod__, ((23,),))
-        raises(ValueError, '%('.__mod__, ({},))
+        raises((ValueError, TypeError), '%('.__mod__, ({},))
 
     def test_format_char(self):
         import sys


More information about the pypy-commit mailing list