mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	gh-104825: Remove implicit newline in the line attribute in tokens emitted in the tokenize module (#104846)
This commit is contained in:
		
							parent
							
								
									c45701e9ef
								
							
						
					
					
						commit
						c8cf9b42eb
					
				
					 5 changed files with 14 additions and 8 deletions
				
			
		|  | @ -201,8 +201,8 @@ def test_searcher(self): | |||
|         test_info = (# text, (block, indent)) | ||||
|                      ("", (None, None)), | ||||
|                      ("[1,", (None, None)),  # TokenError | ||||
|                      ("if 1:\n", ('if 1:\n', None)), | ||||
|                      ("if 1:\n  2\n  3\n", ('if 1:\n', '  2\n')), | ||||
|                      ("if 1:\n", ('if 1:', None)), | ||||
|                      ("if 1:\n  2\n  3\n", ('if 1:', '  2')), | ||||
|                      ) | ||||
|         for code, expected_pair in test_info: | ||||
|             with self.subTest(code=code): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Pablo Galindo Salgado
						Pablo Galindo Salgado