diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-07-04 04:05:25 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-07-04 04:05:25 (GMT) |
commit | bc9d8f838b604565da23fba8ae97e0cd23aa7414 (patch) | |
tree | d30430823303393470c721e7bb35f4685a82a5a9 /Lib/test/test_unicode.py | |
parent | 401d197657550f0ac155e96213b328a70724d2fa (diff) | |
parent | 9ebe08d2f6c3b8bca5148e909cc89efeb7a01ad1 (diff) | |
download | cpython-bc9d8f838b604565da23fba8ae97e0cd23aa7414.zip cpython-bc9d8f838b604565da23fba8ae97e0cd23aa7414.tar.gz cpython-bc9d8f838b604565da23fba8ae97e0cd23aa7414.tar.bz2 |
merge from 3.2
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index f35458a..2cb923f 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -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...') |