diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-06-25 11:31:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-25 11:31:30 (GMT) |
commit | aad8f0eeca93b2150760b5e59ed0495e47d1be1e (patch) | |
tree | 0e6709716dcefca51b4b59f064597e5037e75fdd /Lib/test/test_peg_generator | |
parent | 589e8fe07934a8585d6c5c31d12ae5f766b8fec7 (diff) | |
download | cpython-aad8f0eeca93b2150760b5e59ed0495e47d1be1e.zip cpython-aad8f0eeca93b2150760b5e59ed0495e47d1be1e.tar.gz cpython-aad8f0eeca93b2150760b5e59ed0495e47d1be1e.tar.bz2 |
bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)
Diffstat (limited to 'Lib/test/test_peg_generator')
-rw-r--r-- | Lib/test/test_peg_generator/test_c_parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_peg_generator/test_c_parser.py b/Lib/test/test_peg_generator/test_c_parser.py index a5d8850..f993525 100644 --- a/Lib/test/test_peg_generator/test_c_parser.py +++ b/Lib/test/test_peg_generator/test_c_parser.py @@ -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: |