From 17c9b4a9d69b797a73c8571f8cd5ce888695aa70 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sun, 30 Aug 2009 22:22:21 +0000 Subject: [PATCH] Loosen an exception test in test_import to not require an explicit message but instead just the proper exception. --- Lib/test/test_import.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 44e67c37a09..20c2d8826b3 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")