Skip to content

Commit aad8f0e

Browse files
bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)
1 parent 589e8fe commit aad8f0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_peg_generator/test_c_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ def test_syntax_error_for_string(self) -> None:
365365
start: expr+ NEWLINE? ENDMARKER
366366
expr: NAME
367367
"""
368-
test_source = """
369-
for text in ("a b 42 b a", "名 名 42 名 名"):
368+
test_source = r"""
369+
for text in ("a b 42 b a", "\u540d \u540d 42 \u540d \u540d"):
370370
try:
371371
parse.parse_string(text, mode=0)
372372
except SyntaxError as e:

0 commit comments

Comments
 (0)