]> granicus.if.org Git - python/commitdiff
Remove an overly specific exception message test.
authorBrett Cannon <brett@python.org>
Thu, 17 Mar 2011 00:11:52 +0000 (20:11 -0400)
committerBrett Cannon <brett@python.org>
Thu, 17 Mar 2011 00:11:52 +0000 (20:11 -0400)
Lib/test/test_import.py

index cf17c9615dc66fad3df43104b2d15336fb015e99..ebcc2ca48dbb9056fafd5e70ca30782c248d2bfd 100644 (file)
@@ -283,8 +283,6 @@ class ImportTests(unittest.TestCase):
             self.skipTest('path is not encodable to {}'.format(encoding))
         with self.assertRaises(ImportError) as c:
             __import__(path)
-        self.assertEqual("Import by filename is not supported.",
-                         c.exception.args[0])
 
     def test_import_in_del_does_not_crash(self):
         # Issue 4236