Loosen an exception test in test_import to not require an explicit message but instead just the proper exception.

This commit is contained in:
Brett Cannon 2009-08-30 22:22:21 +00:00
parent 1c1dcbfd5d
commit 17c9b4a9d6
1 changed files with 1 additions and 2 deletions

View 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")