Commit dd9a5695 authored by Brett Cannon's avatar Brett Cannon

Issue #14633: Simplify imp.find_modue() test after fixes from issue

#14629 changed the message.
parent 8ff6baf2
...@@ -59,10 +59,8 @@ class ImportTests(unittest.TestCase): ...@@ -59,10 +59,8 @@ class ImportTests(unittest.TestCase):
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment