mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
merge from 3.2
This commit is contained in:
commit
bc9d8f838b
2 changed files with 2 additions and 3 deletions
|
@ -788,6 +788,7 @@ class UnicodeTest(string_tests.CommonTest,
|
|||
self.assertEqual('%c' % '\U00021483', '\U00021483')
|
||||
self.assertRaises(TypeError, "%c".__mod__, "aa")
|
||||
self.assertRaises(ValueError, "%.1\u1032f".__mod__, (1.0/3))
|
||||
self.assertRaises(TypeError, "%i".__mod__, "aa")
|
||||
|
||||
# formatting jobs delegated from the string implementation:
|
||||
self.assertEqual('...%(foo)s...' % {'foo':"abc"}, '...abc...')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue