summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorStefan Krah <stefan@bytereef.org>2010-07-19 18:01:13 (GMT)
committerStefan Krah <stefan@bytereef.org>2010-07-19 18:01:13 (GMT)
commitaebd6f4c298e4018f8ad3be98815be61f95ba10f (patch)
treec1d22d69b8bb2ff7387c55415e36e9b99a51161c /Lib/test/test_unicode.py
parent8db99c899591ecfe49405334a6e21bfa46ec8ef6 (diff)
downloadcpython-aebd6f4c298e4018f8ad3be98815be61f95ba10f.zip
cpython-aebd6f4c298e4018f8ad3be98815be61f95ba10f.tar.gz
cpython-aebd6f4c298e4018f8ad3be98815be61f95ba10f.tar.bz2
Merged revisions 82978 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82978 | stefan.krah | 2010-07-19 19:58:26 +0200 (Mon, 19 Jul 2010) | 3 lines Sub-issue of #9036: Fix incorrect use of Py_CHARMASK. ........
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 d5b3242..2ed9a45 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -763,6 +763,7 @@ class UnicodeTest(
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...')