]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115961: Improve tests for compressed file-like objects (GH-115963)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 28 Feb 2024 07:51:08 +0000 (09:51 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 07:51:08 +0000 (07:51 +0000)
commite72576c48b8be1e4f22c2f387f9769efa073c5be
treeac4252a513b10479507195e88c4db668c7f55a3a
parent02beb9f0208d22fd8bd893e6e6ec813f7e51b235
gh-115961: Improve tests for compressed file-like objects (GH-115963)

* Increase coverage for compressed file-like objects initialized with a
  file name, an open file object, a file object opened by file
  descriptor, and a file-like object without name and mode attributes
  (io.BytesIO)
* Increase coverage for name, fileno(), mode, readable(), writable(),
  seekable() in different modes and states
* No longer skip tests with bytes names
* Test objects implementing the path protocol, not just pathlib.Path.
Lib/test/test_bz2.py
Lib/test/test_gzip.py
Lib/test/test_lzma.py
Lib/test/test_tarfile.py
Lib/test/test_zipfile/test_core.py