diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-20 13:48:36 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-20 13:48:36 +0100 |
commit | 702221587f78560bc4f53e8d6deb71dfcebf9d55 (patch) | |
tree | 0b1a65d8f308d7f84822d24a7377ad4718544c7f /Lib/test/test_zipimport.py | |
parent | 58986ead40cf860cfccde1e363180d9988ad3ed0 (diff) | |
download | cpython-702221587f78560bc4f53e8d6deb71dfcebf9d55.tar.gz |
Issue #23696: Remove test on ZipImportError.__context__ because the context is
None on Windows.
When the file is not readable, the error occurs at open on UNIX. On Windows,
the error only occurs at the first operation on the open file. It would require
to many changes to set __context__ to an OSError for all file operations, for a
little benefit (__context__ is almost never used).
Diffstat (limited to 'Lib/test/test_zipimport.py')
-rw-r--r-- | Lib/test/test_zipimport.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_zipimport.py b/Lib/test/test_zipimport.py index 5b8d77cae7..0a83841707 100644 --- a/Lib/test/test_zipimport.py +++ b/Lib/test/test_zipimport.py @@ -453,7 +453,6 @@ class BadFileZipImportTestCase(unittest.TestCase): with self.assertRaises(zipimport.ZipImportError) as cm: zipimport.zipimporter(TESTMOD) - self.assertIsInstance(cm.exception.__context__, PermissionError) finally: # If we leave "the read-only bit" set on Windows, nothing can # delete TESTMOD, and later tests suffer bogus failures. |