mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Issue #14633: Simplify imp.find_modue() test after fixes from issue
#14629 changed the message.
This commit is contained in:
		
							parent
							
								
									8ff6baf25b
								
							
						
					
					
						commit
						dd9a56953e
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -59,10 +59,8 @@ def test_find_module_encoding(self):
 | 
				
			||||||
                self.assertEqual(fd.encoding, encoding)
 | 
					                self.assertEqual(fd.encoding, encoding)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        path = [os.path.dirname(__file__)]
 | 
					        path = [os.path.dirname(__file__)]
 | 
				
			||||||
        self.assertRaisesRegex(SyntaxError,
 | 
					        with self.assertRaises(SyntaxError):
 | 
				
			||||||
            r"Non-UTF-8 code starting with '\\xf6'"
 | 
					            imp.find_module('badsyntax_pep3120', path)
 | 
				
			||||||
            r" in file .*badsyntax_pep3120.py",
 | 
					 | 
				
			||||||
            imp.find_module, 'badsyntax_pep3120', path)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_issue1267(self):
 | 
					    def test_issue1267(self):
 | 
				
			||||||
        for mod, encoding, _ in self.test_strings:
 | 
					        for mod, encoding, _ in self.test_strings:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue