diff options
-rw-r--r-- | Lib/test/test_unicode.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 2a94586..104f8f1 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -679,6 +679,12 @@ except ValueError: pass else: raise TestFailed, '"\\".decode("unicode-escape") should fail' +try: + int(u"\u0200") +except UnicodeError: + pass +else: + raise TestFailed, "int(u'\\u0200') failed to raise an exception" verify(u'hello'.encode('ascii') == 'hello') verify(u'hello'.encode('utf-7') == 'hello') |