diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-08-30 22:22:21 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-08-30 22:22:21 (GMT) |
commit | 17c9b4a9d69b797a73c8571f8cd5ce888695aa70 (patch) | |
tree | a0319f4eede51986d4088bb355d8623efcc8f2cf /Lib | |
parent | 1c1dcbfd5db9ec3e47ca9ddf28e7c6b87f09eb19 (diff) | |
download | cpython-17c9b4a9d69b797a73c8571f8cd5ce888695aa70.zip cpython-17c9b4a9d69b797a73c8571f8cd5ce888695aa70.tar.gz cpython-17c9b4a9d69b797a73c8571f8cd5ce888695aa70.tar.bz2 |
Loosen an exception test in test_import to not require an explicit message but instead just the proper exception.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_import.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 44e67c3..20c2d88 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") |