-
Notifications
You must be signed in to change notification settings - Fork 27
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
RuntimeWarning: deallocating CachingFileManager during main test execution #390
Comments
@chuckwondo We may want to consider following the xarray approach of disallowing internal warnings outlined in this issue pydata/xarray#3266 (where the xarray test suite was also issuing the same warning from the netcdf4 library). |
If I'm reading that correctly, I believe that's a separate issue. However, it may also be applicable to this repo, but not for the warnings I noted above. The ones above are due to failing to close file pointers. For this particular issue, we want to be properly using context managers in our tests. Other warnings not due to failing to close file pointers we may certainly want to silence appropriately, to also avoid extraneous logging output that might make it hard to see actual problems. |
@sharkinsspatial, for reference, see what I did here: #386 |
Was this closed by #386 @chuckwondo ? |
No, that was a separate set of warnings. The 2 sets of warnings appear for different github workflows. The ones in #386 appear in the upstream tests, whereas the ones here appear in the main tests. |
Similar to #385, there are dozens (over 60 as of this writing!) of the following warnings emitted during execution of the main tests:
This is again due to failing to properly close open files in tests/fixtures, so does not appear to be indicative of any virtualizarr bug, but the volume of messages is quite disconcerting to anybody looking at the job logs. Further, these might lead to testing problems at some point in time.
Cleaning up these warnings should more readily make potentially more concerning problems more visible to those who keep an eye on such logs.
The text was updated successfully, but these errors were encountered: