forked from lightkurve/lightkurve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak in reading LC/TPF (lightkurve#1390)
* Fixed memleak for lc in lightkurve#1388 * Fixed memleak for tpf in lightkurve#1388 * add test for read HDUList * Explicit tests for read memory leaks (LC & TPF) - Run in memtest workflow in CI (pytest -m memtest --remote-data) * Test tpf.from_fits_images() to ensure no unclosed file handles * Revert lc.hdu change in PR lightkurve#1299 * Revert raising ResourceWarning as error during tests in PR lightkurve#1299 - For it to actually work (to ensure no unclosed files), "error::pytest.PytestUnraisableExceptionWarning" wil also be needed - but it'll create many false alarms. - Explicit tests on unclosed file handles is done in specific tests instead. * add changelog [skip ci]
- Loading branch information
Showing
9 changed files
with
276 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,3 @@ testpaths = [ | |
"tests", | ||
"src", | ||
] | ||
filterwarnings = [ | ||
"error::ResourceWarning", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.