Skip to content

Unclosed file warning in test_image.test_imread_pil_uint16 #5364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mdboom opened this issue Oct 30, 2015 · 4 comments
Closed

Unclosed file warning in test_image.test_imread_pil_uint16 #5364

mdboom opened this issue Oct 30, 2015 · 4 comments
Assignees

Comments

@mdboom
Copy link
Member

mdboom commented Oct 30, 2015

matplotlib.tests.test_image.test_imread_pil_uint16 ... /home/mdboom/.pyenv/versions/miniconda3-3.16.0/lib/python3.4/site-packages/PIL/Image.py:665: ResourceWarning: unclosed file <_io.TextIOWrapper name='/matplotlib/tests/baseline_images/test_image/uint16.tif' mode='r+' encoding='UTF-8'>
  self.load()
/matplotlib/image.py:1304: ResourceWarning: unclosed file <_io.BufferedReader name='/matplotlib/tests/baseline_images/test_image/uint16.tif'>
  im = pilread(fname)
ok
@mdboom mdboom self-assigned this Oct 30, 2015
@tacaswell
Copy link
Member

I think both @jenshnielsen and I took a pass at this and concluded the issue was in PIL.

@jenshnielsen
Copy link
Member

Yes I tried fixing it in #4619 but that solution breaks other stuff

@mdboom
Copy link
Member Author

mdboom commented Nov 2, 2015

Ok. I have no problem punting -- it's helpful to have this issue exist to make it easily searchable, though.

@anntzer
Copy link
Contributor

anntzer commented Jun 26, 2017

Was fixed by #5515.

@anntzer anntzer closed this as completed Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants