C++, conditionally disable test on sys.maxunicode

This commit is contained in:
Jakob Lykke Andersen 2018-08-26 13:17:53 +02:00
parent 14d588fe15
commit 2a544b4ec3

View File

@ -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)')