diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unicode/unicode.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unicode/unicode.py b/tests/unicode/unicode.py index 57075f7e3e..3ed74b7900 100644 --- a/tests/unicode/unicode.py +++ b/tests/unicode/unicode.py @@ -20,3 +20,9 @@ print(enc, enc.decode() == s) # printing of unicode chars using repr # TODO we don't do this correctly #print(repr(s)) + +# test invalid escape code +try: + eval('"\\U00110000"') +except SyntaxError: + print('SyntaxError') |