[Python-checkins] cpython: Issue #14633: Simplify imp.find_modue() test after fixes from issue
brett.cannon
python-checkins at python.org
Fri Apr 20 19:00:09 CEST 2012
http://hg.python.org/cpython/rev/a281a6622714
changeset: 76429:a281a6622714
user: Brett Cannon <brett at python.org>
date: Fri Apr 20 12:59:59 2012 -0400
summary:
Issue #14633: Simplify imp.find_modue() test after fixes from issue
#14629 changed the message.
files:
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
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list