diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-11-04 09:57:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 09:57:53 (GMT) |
commit | 890ef1b035457fe5d0b0faf27a703c74c33e0141 (patch) | |
tree | 903a267192533356e047c3209c88ebe4efd9c77e /Lib/test/ziptestdata/README.md | |
parent | 18c954849bcdd5acb6ef91cd90d92f3b5c685134 (diff) | |
download | cpython-890ef1b035457fe5d0b0faf27a703c74c33e0141.zip cpython-890ef1b035457fe5d0b0faf27a703c74c33e0141.tar.gz cpython-890ef1b035457fe5d0b0faf27a703c74c33e0141.tar.bz2 |
gh-108303: Move `zip` and `tar` archives to `Lib/test/archivetestdata` (#111549)
Diffstat (limited to 'Lib/test/ziptestdata/README.md')
-rw-r--r-- | Lib/test/ziptestdata/README.md | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Lib/test/ziptestdata/README.md b/Lib/test/ziptestdata/README.md deleted file mode 100644 index 00d96d4..0000000 --- a/Lib/test/ziptestdata/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# Test data for `test_zipfile` - -The test executables in this directory are created manually from header.sh and -the `testdata_module_inside_zip.py` file. You must have Info-ZIP's zip utility -installed (`apt install zip` on Debian). - -## Purpose - -These are used to test executable files with an appended zipfile, in a scenario -where the executable is _not_ a Python interpreter itself so our automatic -zipimport machinery (that'd look for `__main__.py`) is not being used. - -## Updating the test executables - -If you update header.sh or the testdata_module_inside_zip.py file, rerun the -commands below. These are expected to be rarely changed, if ever. - -### Standard old format (2.0) zip file - -``` -zip -0 zip2.zip testdata_module_inside_zip.py -cat header.sh zip2.zip >exe_with_zip -rm zip2.zip -``` - -### Modern format (4.5) zip64 file - -Redirecting from stdin forces Info-ZIP's zip tool to create a zip64. - -``` -zip -0 <testdata_module_inside_zip.py >zip64.zip -cat header.sh zip64.zip >exe_with_z64 -rm zip64.zip -``` - |