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

DM-31046: Add mime.cache to file leaks ignore list #99

Merged
merged 1 commit into from Oct 4, 2021

Conversation

parejkoj
Copy link
Contributor

@parejkoj parejkoj commented Sep 23, 2021

I'm adding code to analysis_ap that uses PIL to open PNG images, which can leave the mime.cache open. We don't have control over that, so just ignore file leak failures due to this.

@kfindeisen
Copy link
Member

The change itself looks fine; since I'm not familiar with PIL, I can't comment on whether there's a way to avoid using the cache or ensure it's promptly closed.

PIL loads the mime.cache when checking file types, and may not release it,
causing a spurious test failure.
@codecov
Copy link

codecov bot commented Oct 1, 2021

Codecov Report

Merging #99 (2d19cbe) into master (336def8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #99   +/-   ##
=======================================
  Coverage   88.59%   88.59%           
=======================================
  Files          24       24           
  Lines        1420     1420           
=======================================
  Hits         1258     1258           
  Misses        162      162           
Impacted Files Coverage Δ
python/lsst/utils/tests.py 74.68% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 336def8...2d19cbe. Read the comment docs.

@parejkoj parejkoj merged commit e754672 into master Oct 4, 2021
@parejkoj parejkoj deleted the tickets/DM-31046 branch October 4, 2021 19:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants