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-22796: Rearrange test so that temp data files are removed if tests pass #332

Merged
merged 1 commit into from Jan 7, 2020

Conversation

timj
Copy link
Member

@timj timj commented Jan 6, 2020

This saves 200MB in the installed footprint. The test data are
not deleted if a test fails.

@timj timj requested a review from jdswinbank January 6, 2020 22:21
def wrapped(self):
try:
func(self)
except Exception:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be catching Exception here, or AssertionError (per the docstring, above)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did have AssertionError here in the lsst_ci variant but then I got to pondering that any failures whilst running a test would also be a good reason not to delete. I can fix the docstring.

tests/nopytest_test_coadds.py Outdated Show resolved Hide resolved
tests/nopytest_test_coadds.py Outdated Show resolved Hide resolved
tests/nopytest_test_coadds.py Outdated Show resolved Hide resolved
This saves 200MB in the installed footprint.  The test data are
not deleted if a test fails.
@timj timj merged commit 448f008 into master Jan 7, 2020
@timj timj deleted the tickets/DM-22796 branch January 7, 2020 16:32
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