]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-115961: Improve tests for compressed file-like objects (GH-115963) (GH...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 28 Feb 2024 09:38:39 +0000 (11:38 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 09:38:39 +0000 (09:38 +0000)
commitbecc61596f79a3bb2bfeb7134581ae46638d34dc
treee9de79fc7654c59afc459f985634532f2c40bda5
parent40070860192a26a46adf59ba2d5d97ba7fea6b2b
[3.11] gh-115961: Improve tests for compressed file-like objects (GH-115963) (GH-116039)

* 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.
(cherry picked from commit e72576c48b8be1e4f22c2f387f9769efa073c5be)
Lib/test/test_bz2.py
Lib/test/test_gzip.py
Lib/test/test_lzma.py
Lib/test/test_tarfile.py
Lib/test/test_zipfile.py