]> granicus.if.org Git - python/commitdiff
Loosen an exception test in test_import to not require an explicit message but instea...
authorBrett Cannon <bcannon@gmail.com>
Sun, 30 Aug 2009 22:22:21 +0000 (22:22 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 30 Aug 2009 22:22:21 +0000 (22:22 +0000)
Lib/test/test_import.py

index 44e67c37a09ec2c3b142009630f0371b5c4624c6..20c2d8826b31b7e3efcd5ebd0ff95b8a1ca59805 100644 (file)
@@ -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")