mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-23 15:20:33 +03:00
Test missing subfile
This commit is contained in:
parent
9762c9e30e
commit
152d982644
|
@ -40,6 +40,12 @@ def test_unexpected_end(tmp_path: Path) -> None:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def test_cannot_find_subfile(tmp_path: Path) -> None:
|
||||||
|
with pytest.raises(OSError):
|
||||||
|
with TarIO.TarIO(TEST_TAR_FILE, "test"):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(is_pypy(), reason="Requires CPython")
|
@pytest.mark.skipif(is_pypy(), reason="Requires CPython")
|
||||||
def test_unclosed_file() -> None:
|
def test_unclosed_file() -> None:
|
||||||
with pytest.warns(ResourceWarning):
|
with pytest.warns(ResourceWarning):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user