mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	bpo-41112: Fix test_peg_generator on non-UTF-8 locales. (GH-21138)
(cherry picked from commit aad8f0eeca)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									086b453980
								
							
						
					
					
						commit
						c4dfcb28f7
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -365,8 +365,8 @@ def test_syntax_error_for_string(self) -> None: | ||||||
|         start: expr+ NEWLINE? ENDMARKER |         start: expr+ NEWLINE? ENDMARKER | ||||||
|         expr: NAME |         expr: NAME | ||||||
|         """ |         """ | ||||||
|         test_source = """ |         test_source = r""" | ||||||
|         for text in ("a b 42 b a", "名 名 42 名 名"): |         for text in ("a b 42 b a", "\u540d \u540d 42 \u540d \u540d"): | ||||||
|             try: |             try: | ||||||
|                 parse.parse_string(text, mode=0) |                 parse.parse_string(text, mode=0) | ||||||
|             except SyntaxError as e: |             except SyntaxError as e: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)