summaryrefslogtreecommitdiff
path: root/Lib/test/string_tests.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-08-28 18:01:45 -0400
committerBenjamin Peterson <benjamin@python.org>2012-08-28 18:01:45 -0400
commit59043f96eaf5797c0a1f9058b802fcfea5d044fa (patch)
tree170cf6031e722c2a8a0601aa33a12e7c43753b9c /Lib/test/string_tests.py
parent5b9eccb383c21fda80f3e3b5b9d6bb803b7b70bf (diff)
parent28a6cfaefc41a4e4bfa6dd0b54318c0465987652 (diff)
downloadcpython-git-59043f96eaf5797c0a1f9058b802fcfea5d044fa.tar.gz
merge 3.2 (#15801)
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r--Lib/test/string_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
index 8da3e774f8..e4688d08fb 100644
--- a/Lib/test/string_tests.py
+++ b/Lib/test/string_tests.py
@@ -1206,6 +1206,9 @@ class MixinStrUnicodeUserStringTest:
self.checkraises(ValueError, '%%%df' % (2**64), '__mod__', (3.2))
self.checkraises(ValueError, '%%.%df' % (2**64), '__mod__', (3.2))
+ class X(object): pass
+ self.checkraises(TypeError, 'abc', '__mod__', X())
+
def test_floatformatting(self):
# float formatting
for prec in range(100):