-
Notifications
You must be signed in to change notification settings - Fork 261
TEST: Use class variables and close open file handles in ECAT tests #1155
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
TEST: Use class variables and close open file handles in ECAT tests #1155
Conversation
Codecov ReportBase: 92.38% // Head: 92.38% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #1155 +/- ##
=======================================
Coverage 92.38% 92.38%
=======================================
Files 98 98
Lines 12257 12257
Branches 2520 2520
=======================================
Hits 11324 11324
Misses 612 612
Partials 321 321 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
63cb431
to
1253e2c
Compare
58f7b59
to
fb3bb8b
Compare
fb3bb8b
to
3e25a5d
Compare
Tests should be fixed if you rebase on master... |
e2033b3
to
07e25d0
Compare
I am still getting errors, they seem related to CI instability. |
Hmm. Looks like there might be a between-test dependency that can get broken by |
Okay, let's try again... |
ResourceWarning: unclosed file <_io.BufferedReader name='/home/runner/work/nibabel/nibabel/virtenv/lib/python3.9/site-packages/nibabel/tests/data/tinypet.v'>
a33a2af
to
f0770b9
Compare
This doesn't seem to have eliminated the warning. |
Removing all warnings requires a rewrite of the testing classes. In any case, this does the right thing by changing |
Yeah, I think we need to move to a different fixture approach to ensure better handling of resources. Are you good to merge this as-is, or are there things you still want to try to do here? |
I'm good, I can rewrite the commit message if needed. |
ResourceWarning: unclosed file <_io.BufferedReader name='/home/runner/work/nibabel/nibabel/virtenv/lib/python3.9/site-packages/nibabel/tests/data/tinypet.v'>