summaryrefslogtreecommitdiff
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2011-07-03 21:03:16 -0700
committerSenthil Kumaran <senthil@uthcode.com>2011-07-03 21:03:16 -0700
commitfbb338734d62ac8c6dc72205a9b2d2fcaea6ffc9 (patch)
treef9c9cb52cdfe7586af9f84b4d1926863479773c6 /Lib/test/test_unicode.py
parent3c35d9ef13c5347aea78e1c62da4ad31d8f3c7d7 (diff)
downloadcpython-fbb338734d62ac8c6dc72205a9b2d2fcaea6ffc9.tar.gz
Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 97be58793f..885e740b76 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...')