]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-115961: Improve tests for compressed file-like objects (GH-115963) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Feb 2024 09:00:50 +0000 (10:00 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 09:00:50 +0000 (11:00 +0200)
commite5e98626a15dd62eccbb6a281ae0263f005f4942
tree40d5886bd448136c074ca5f00da614ed3f836fbd
parent418e72041349dccdd2bf6ad58643fec3314b1691
[3.12] gh-115961: Improve tests for compressed file-like objects (GH-115963) (GH-116032)

* 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)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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