mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
use the stricter PyMapping_Check (closes #15801)
This commit is contained in:
parent
25cf30faf9
commit
23d49d3e7e
4 changed files with 8 additions and 2 deletions
|
@ -1113,6 +1113,9 @@ class MixinStrUnicodeUserStringTest:
|
|||
self.checkraises(TypeError, '%10.*f', '__mod__', ('foo', 42.))
|
||||
self.checkraises(ValueError, '%10', '__mod__', (42,))
|
||||
|
||||
class X(object): pass
|
||||
self.checkraises(TypeError, 'abc', '__mod__', X())
|
||||
|
||||
def test_floatformatting(self):
|
||||
# float formatting
|
||||
for prec in xrange(100):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue