bpo-28494: Test existing zipfile working behavior.#15853
bpo-28494: Test existing zipfile working behavior.#15853Yhg1s merged 2 commits intopython:masterfrom
Conversation
Adds unittests for executables with a zipfile appended to test_zipfile as zipfile.is_zipfile and zipfile.ZipFile work properly on these today.
|
duh, fixing the test to skip the execute one on windows :) |
| self._test_zip_works(self.exe_zip64) | ||
|
|
||
| @unittest.skipUnless(sys.executable, 'sys.executable required.') | ||
| @unittest.skipUnless(os.access('/bin/bash', os.X_OK), |
There was a problem hiding this comment.
How about using shutil.which('bash') instead? There are some windows machines with bash installed now... will the test work there?
There was a problem hiding this comment.
I didn't think windows supported #! line executables as a concept. executable is based on filename ending in bat/cmd/com/exe, not an execute bit there.
|
GH-15891 is a backport of this pull request to the 3.8 branch. |
|
|
Buildbot failure should have been fixed by GH-15902. |
Add unittests for executables with a zipfile appended to test_zipfile, as zipfile.is_zipfile and zipfile.ZipFile work properly on these today.
Adds unittests for executables with a zipfile appended to test_zipfile
as zipfile.is_zipfile and zipfile.ZipFile work properly on these today.
This is being added as a regression test that #5053 would otherwise fail today.
https://bugs.python.org/issue28494