Don't shadow builtin open

This commit is contained in:
Hugo van Kemenade 2025-02-15 14:44:00 +02:00
parent 028f0d6ea9
commit 126026e5e5

View File

@ -34,12 +34,12 @@ def test_sanity() -> None:
@pytest.mark.skipif(is_pypy(), reason="Requires CPython")
def test_unclosed_file() -> None:
def open() -> None:
def open_test_image() -> None:
im = Image.open(TEST_GIF)
im.load()
with pytest.warns(ResourceWarning):
open()
open_test_image()
def test_closed_file() -> None: