Fixed unclosed file warnings by radarhere · Pull Request #8705 · python-pillow/Pillow
Tests/test_file_libtiff.py::TestFileLibTiff::test_buffering[Tests/images/old-style-jpeg-compression-no-samplesperpixel.tif]
Tests/test_file_libtiff.py::TestFileLibTiff::test_buffering[Tests/images/old-style-jpeg-compression-no-samplesperpixel.tif]
/vpy3/lib/python3.10/site-packages/_pytest/python.py:159: ResourceWarning: unclosed file <_io.BufferedReader name='Tests/images/old-style-jpeg-compression-no-samplesperpixel.tif'>
result = testfunction(**testargs)
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
Tests/test_file_libtiff.py::TestFileLibTiff::test_buffering[Tests/images/old-style-jpeg-compression.tif]
Tests/test_file_libtiff.py::TestFileLibTiff::test_buffering[Tests/images/old-style-jpeg-compression.tif]
/vpy3/lib/python3.10/site-packages/_pytest/python.py:159: ResourceWarning: unclosed file <_io.BufferedReader name='Tests/images/old-style-jpeg-compression.tif'>
result = testfunction(**testargs)
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.