mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	#27364: fix "incorrect" uses of escape character in the stdlib.
And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
This commit is contained in:
		
							parent
							
								
									513d7478a1
								
							
						
					
					
						commit
						44b548dda8
					
				
					 83 changed files with 324 additions and 324 deletions
				
			
		|  | @ -390,7 +390,7 @@ def test_loadTestsFromName__malformed_name(self): | |||
|         suite = loader.loadTestsFromName('abc () //') | ||||
|         error, test = self.check_deferred_error(loader, suite) | ||||
|         expected = "Failed to import test module: abc () //" | ||||
|         expected_regex = "Failed to import test module: abc \(\) //" | ||||
|         expected_regex = r"Failed to import test module: abc \(\) //" | ||||
|         self.assertIn( | ||||
|             expected, error, | ||||
|             'missing error string in %r' % error) | ||||
|  | @ -502,7 +502,7 @@ def test_loadTestsFromName__relative_malformed_name(self): | |||
|         suite = loader.loadTestsFromName('abc () //', unittest) | ||||
|         error, test = self.check_deferred_error(loader, suite) | ||||
|         expected = "module 'unittest' has no attribute 'abc () //'" | ||||
|         expected_regex = "module 'unittest' has no attribute 'abc \(\) //'" | ||||
|         expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'" | ||||
|         self.assertIn( | ||||
|             expected, error, | ||||
|             'missing error string in %r' % error) | ||||
|  | @ -809,7 +809,7 @@ def test_loadTestsFromNames__malformed_name(self): | |||
|         suite = loader.loadTestsFromNames(['abc () //']) | ||||
|         error, test = self.check_deferred_error(loader, list(suite)[0]) | ||||
|         expected = "Failed to import test module: abc () //" | ||||
|         expected_regex = "Failed to import test module: abc \(\) //" | ||||
|         expected_regex = r"Failed to import test module: abc \(\) //" | ||||
|         self.assertIn( | ||||
|             expected,  error, | ||||
|             'missing error string in %r' % error) | ||||
|  | @ -928,7 +928,7 @@ def test_loadTestsFromNames__relative_malformed_name(self): | |||
|         suite = loader.loadTestsFromNames(['abc () //'], unittest) | ||||
|         error, test = self.check_deferred_error(loader, list(suite)[0]) | ||||
|         expected = "module 'unittest' has no attribute 'abc () //'" | ||||
|         expected_regex = "module 'unittest' has no attribute 'abc \(\) //'" | ||||
|         expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'" | ||||
|         self.assertIn( | ||||
|             expected, error, | ||||
|             'missing error string in %r' % error) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 R David Murray
						R David Murray