Skip to content

Commit

Permalink
bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (pythonGH-21138)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka authored Jun 25, 2020
1 parent 589e8fe commit aad8f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_peg_generator/test_c_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ def test_syntax_error_for_string(self) -> None:
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:
Expand Down

0 comments on commit aad8f0e

Please sign in to comment.