mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-98811: use full source location to simplify __future__ imports error checking. This also fixes an incorrect error offset. (GH-98812)
This commit is contained in:
		
							parent
							
								
									29f98b46b7
								
							
						
					
					
						commit
						39448adc9d
					
				
					 5 changed files with 71 additions and 69 deletions
				
			
		|  | @ -60,7 +60,7 @@ def test_badfuture6(self): | |||
|     def test_badfuture7(self): | ||||
|         with self.assertRaises(SyntaxError) as cm: | ||||
|             from test import badsyntax_future7 | ||||
|         self.check_syntax_error(cm.exception, "badsyntax_future7", 3, 53) | ||||
|         self.check_syntax_error(cm.exception, "badsyntax_future7", 3, 54) | ||||
| 
 | ||||
|     def test_badfuture8(self): | ||||
|         with self.assertRaises(SyntaxError) as cm: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Irit Katriel
						Irit Katriel