Skip to content

Commit

Permalink
Don't shadow builtin open
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 15, 2025
1 parent 821b8b0 commit 788f01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/test_file_gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 788f01b

Please sign in to comment.