From: Brett Cannon Date: Sun, 30 Aug 2009 22:22:21 +0000 (+0000) Subject: Loosen an exception test in test_import to not require an explicit message but instea... X-Git-Tag: v3.2a1~2641 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17c9b4a9d69b797a73c8571f8cd5ce888695aa70;p=thirdparty%2FPython%2Fcpython.git Loosen an exception test in test_import to not require an explicit message but instead just the proper exception. --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 44e67c37a09e..20c2d8826b31 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -252,8 +252,7 @@ class ImportTest(unittest.TestCase): try: __import__(path) except ImportError as err: - self.assertEqual("Import by filename is not supported.", - err.args[0]) + pass else: self.fail("import by path didn't raise an exception")