diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-08-28 22:01:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-08-28 22:01:45 (GMT) |
commit | 59043f96eaf5797c0a1f9058b802fcfea5d044fa (patch) | |
tree | 170cf6031e722c2a8a0601aa33a12e7c43753b9c /Lib/test | |
parent | 5b9eccb383c21fda80f3e3b5b9d6bb803b7b70bf (diff) | |
parent | 28a6cfaefc41a4e4bfa6dd0b54318c0465987652 (diff) | |
download | cpython-59043f96eaf5797c0a1f9058b802fcfea5d044fa.zip cpython-59043f96eaf5797c0a1f9058b802fcfea5d044fa.tar.gz cpython-59043f96eaf5797c0a1f9058b802fcfea5d044fa.tar.bz2 |
merge 3.2 (#15801)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/string_tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 8da3e77..e4688d0 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): |