diff options
author | Stefan Krah <stefan@bytereef.org> | 2010-07-19 18:06:46 (GMT) |
---|---|---|
committer | Stefan Krah <stefan@bytereef.org> | 2010-07-19 18:06:46 (GMT) |
commit | 0b9201fa1cf87af559e8bbe38082df9d834ef353 (patch) | |
tree | 30913eb8de93a36f2a4fe14ed26729f64795786e /Lib | |
parent | c7743aaac3b318c3e4c8583d8b1e5f3be267d119 (diff) | |
download | cpython-0b9201fa1cf87af559e8bbe38082df9d834ef353.zip cpython-0b9201fa1cf87af559e8bbe38082df9d834ef353.tar.gz cpython-0b9201fa1cf87af559e8bbe38082df9d834ef353.tar.bz2 |
Sub-issue of #9036: Fix incorrect use of Py_CHARMASK.
Diffstat (limited to 'Lib')
-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 8d52492..1151e86 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -394,6 +394,7 @@ class UnicodeTest( self.assertEqual(u'%c' % 0x1234, u'\u1234') self.assertRaises(OverflowError, u"%c".__mod__, (sys.maxunicode+1,)) + self.assertRaises(ValueError, u"%.1\u1032f".__mod__, (1.0/3)) for num in range(0x00,0x80): char = chr(num) |