changeset: 76429:a281a6622714 user: Brett Cannon date: Fri Apr 20 12:59:59 2012 -0400 files: Lib/test/test_imp.py description: Issue #14633: Simplify imp.find_modue() test after fixes from issue #14629 changed the message. diff -r a32be109bd86 -r a281a6622714 Lib/test/test_imp.py --- a/Lib/test/test_imp.py Fri Apr 20 12:53:14 2012 -0400 +++ b/Lib/test/test_imp.py Fri Apr 20 12:59:59 2012 -0400 @@ -59,10 +59,8 @@ 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:

AltStyle によって変換されたページ (->オリジナル) /