mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-27 13:10:08 +08:00
In all_warnings context manager, return warnings for examination
This commit is contained in:
1 parent
337f3d175f
commit
8fdd5a270d
1 file changed
+2
-2
@@ -55,6 +55,6 @@ def all_warnings():
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
with warnings.catch_warnings():
|
||||
with warnings.catch_warnings(record=True) as w:
|
||||
warnings.simplefilter("always")
|
||||
yield
|
||||
yield w
|
||||
Reference in new issue
Block a user