bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)

This commit is contained in:
Serhiy Storchaka 2020-06-25 14:31:30 +03:00 committed by GitHub
parent 589e8fe079
commit aad8f0eeca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -365,8 +365,8 @@ class TestCParser(TempdirManager, unittest.TestCase):
start: expr+ NEWLINE? ENDMARKER
expr: NAME
"""
test_source = """
for text in ("a b 42 b a", "名 名 42 名 名"):
test_source = r"""
for text in ("a b 42 b a", "\u540d \u540d 42 \u540d \u540d"):
try:
parse.parse_string(text, mode=0)
except SyntaxError as e: