diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py index 0fe8d5c19..b8856824b 100644 --- a/tests/test_domain_cpp.py +++ b/tests/test_domain_cpp.py @@ -10,6 +10,7 @@ """ import re +import sys import pytest from six import text_type @@ -137,8 +138,9 @@ def test_expressions(): exprCheck(p + "'\\x0A'", t + "10") exprCheck(p + "'\\u0a42'", t + "2626") exprCheck(p + "'\\u0A42'", t + "2626") - exprCheck(p + "'\\U0001f34c'", t + "127820") - exprCheck(p + "'\\U0001F34C'", t + "127820") + if sys.maxunicode > 65535: + exprCheck(p + "'\\U0001f34c'", t + "127820") + exprCheck(p + "'\\U0001F34C'", t + "127820") # TODO: user-defined lit exprCheck('(... + Ns)', '(... + Ns)')