-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reduce number of deprecation warnings
There is (arguably) a bug in Python's warnings module, such that every use of warnings.catch_warnings erases all memory of which warnings have been displayed. This breaks the "default" setting of the warnings filter which is supposed to ensure that each warning is only displayed once per (module, line). So here, we disuse catch_warnings. See https://bugs.python.org/issue29672
- Loading branch information
Showing
1 changed file
with
33 additions
and
4 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