Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit