Skip to content

Commit

Permalink
Add mime.cache to file leaks ignore list
Browse files Browse the repository at this point in the history
PIL loads the mime.cache when checking file types, and may not release it,
causing a spurious test failure.
  • Loading branch information
parejkoj committed Oct 1, 2021
1 parent 336def8 commit 2d19cbe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/lsst/utils/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def testFileDescriptorLeaks(self) -> None:
and not f.startswith("/proc/")
and not f.endswith(".ttf")
and not (f.startswith("/var/lib/") and f.endswith("/passwd"))
and not f.endswith("astropy.log"))
and not f.endswith("astropy.log")
and not f.endswith("mime/mime.cache")
)

diff = now_open.difference(open_files)
if diff:
Expand Down

0 comments on commit 2d19cbe

Please sign in to comment.