summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorStefan Krah <stefan@bytereef.org>2010-07-19 17:58:26 (GMT)
committerStefan Krah <stefan@bytereef.org>2010-07-19 17:58:26 (GMT)
commit99212f61db1155c4d82b449078fe337cbd42a19f (patch)
treee4fae7a86ee7690df76b9e33a8f11a85c8662ce9 /Lib/test
parent9542cc6eb594f5b1e26b9dfacd9f427f64b6019c (diff)
downloadcpython-99212f61db1155c4d82b449078fe337cbd42a19f.zip
cpython-99212f61db1155c4d82b449078fe337cbd42a19f.tar.gz
cpython-99212f61db1155c4d82b449078fe337cbd42a19f.tar.bz2
Sub-issue of #9036: Fix incorrect use of Py_CHARMASK.
Diffstat (limited to 'Lib/test')
-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 ba66c81..ab6c153 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -757,6 +757,7 @@ class UnicodeTest(string_tests.CommonTest,
self.assertRaises(OverflowError, "%c".__mod__, (0x110000,))
self.assertEqual('%c' % '\U00021483', '\U00021483')
self.assertRaises(TypeError, "%c".__mod__, "aa")
+ self.assertRaises(ValueError, "%.1\u1032f".__mod__, (1.0/3))
# formatting jobs delegated from the string implementation:
self.assertEqual('...%(foo)s...' % {'foo':"abc"}, '...abc...')