Skip to content
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

Fix unclosed test files #222

Merged

Conversation

ConorMacBride
Copy link
Member

@ConorMacBride ConorMacBride commented Feb 14, 2024

Fix for

>                   warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
E                   pytest.PytestUnraisableExceptionWarning: Exception ignored in: <_io.FileIO [closed]>
E                   
E                   Traceback (most recent call last):
E                     File "/home/runner/work/pytest-mpl/pytest-mpl/tests/test_deterministic.py", line 116, in test_config
E                       actual_metadata = Image.open(str(baseline_image)).info
E                   ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/pytest-of-runner/pytest-0/test_config34/baseline/test_mpl.png'>

@ConorMacBride ConorMacBride added the infrastructure PRs related to the package and tests etc label Feb 14, 2024
@ConorMacBride ConorMacBride merged commit 2b1b8d7 into matplotlib:main Feb 14, 2024
21 checks passed
@ConorMacBride ConorMacBride deleted the fix-unclosed-test-files branch February 14, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure PRs related to the package and tests etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant