diff options
author | Brett Cannon <brett@python.org> | 2012-04-20 16:59:59 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2012-04-20 16:59:59 (GMT) |
commit | dd9a56953e561076b5573d53f6e4fdd7f42b208c (patch) | |
tree | 65e68d53f120e6f3e6ba03053648a9c4fa9fe02f /Lib/test | |
parent | 8ff6baf25b0eac32bf3009bc383b25b687a1ec0d (diff) | |
download | cpython-dd9a56953e561076b5573d53f6e4fdd7f42b208c.zip cpython-dd9a56953e561076b5573d53f6e4fdd7f42b208c.tar.gz cpython-dd9a56953e561076b5573d53f6e4fdd7f42b208c.tar.bz2 |
Issue #14633: Simplify imp.find_modue() test after fixes from issue
#14629 changed the message.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_imp.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index cd34a46..432ca41 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -59,10 +59,8 @@ class ImportTests(unittest.TestCase): self.assertEqual(fd.encoding, encoding) path = [os.path.dirname(__file__)] - self.assertRaisesRegex(SyntaxError, - r"Non-UTF-8 code starting with '\\xf6'" - r" in file .*badsyntax_pep3120.py", - imp.find_module, 'badsyntax_pep3120', path) + with self.assertRaises(SyntaxError): + imp.find_module('badsyntax_pep3120', path) def test_issue1267(self): for mod, encoding, _ in self.test_strings: |