Loosen an exception test in test_import to not require an explicit message but instead just the proper exception.
This commit is contained in:
parent
1c1dcbfd5d
commit
17c9b4a9d6
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue