mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Make test_compile not fail.
I *think* it's okay no longer to require that compiling a Unicode string with a coding declaration fails; it seems appropriate to just ignore it.
This commit is contained in:
		
							parent
							
								
									b5b652e4d1
								
							
						
					
					
						commit
						f8761c781b
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -304,9 +304,9 @@ def f(): | |||
|         f1, f2 = f() | ||||
|         self.assertNotEqual(id(f1.__code__), id(f2.__code__)) | ||||
| 
 | ||||
|     def test_unicode_encoding(self): | ||||
|         code = "# -*- coding: utf-8 -*-\npass\n" | ||||
|         self.assertRaises(SyntaxError, compile, code, "tmp", "exec") | ||||
| ##     def test_unicode_encoding(self): | ||||
| ##         code = "# -*- coding: utf-8 -*-\npass\n" | ||||
| ##         self.assertRaises(SyntaxError, compile, code, "tmp", "exec") | ||||
| 
 | ||||
|     def test_subscripts(self): | ||||
|         # SF bug 1448804 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum