diff options
author | Damien George <damien.p.george@gmail.com> | 2018-11-26 16:13:08 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-11-26 16:13:08 +1100 |
commit | 7c85c7c210e3ad417f59038de95b71618783d76c (patch) | |
tree | 133d8e4c446a3f854213d547cfaad38af0eed36d /tests/unicode/unicode.py | |
parent | d63ef86c6e83205f18938bfa8e538e35eda5fd52 (diff) |
py/unicode: Fix check for valid utf8 being stricter about contn chars.
Diffstat (limited to 'tests/unicode/unicode.py')
-rw-r--r-- | tests/unicode/unicode.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unicode/unicode.py b/tests/unicode/unicode.py index 3a35ce894..b3d4b09ee 100644 --- a/tests/unicode/unicode.py +++ b/tests/unicode/unicode.py @@ -47,3 +47,7 @@ try: str(bytearray(b'ab\xc0a'), 'utf8') except UnicodeError: print('UnicodeError') +try: + str(b'\xf0\xe0\xed\xe8', 'utf8') +except UnicodeError: + print('UnicodeError') |