Merge pull request #5356 from jakobandersen/cpp_unicode_test

C++, conditionally disable test on sys.maxunicode
This commit is contained in:
Takeshi KOMIYA
2018-08-26 21:13:03 +09:00
committed by GitHub

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