You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test_clear_and_catch_warnings is also failing for me in windows 10 along with test_grid and test_matplotlib_figure.
________________________ test_clear_and_catch_warnings ________________________
def test_clear_and_catch_warnings():
# Initial state of module, no warnings
my_mod = sys.modules[__name__]
try:
my_mod.__warningregistry__.clear()
except AttributeError:
pass
npt.assert_equal(getattr(my_mod, '__warningregistry__', {}), {})
with ft.clear_and_catch_warnings(modules=[my_mod]):
warnings.simplefilter('ignore')
warnings.warn('Some warning')
npt.assert_equal(my_mod.__warningregistry__, {})
# Without specified modules, don't clear warnings during context
with ft.clear_and_catch_warnings():
warnings.warn('Some warning')
> assert_warn_len_equal(my_mod, 1)
fury\tests\test_testing.py:63:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
mod = <module 'fury.tests.test_testing' from 'D:\\GSoC\\fury\\fury\\tests\\test_testing.py'>
n_in_context = 1
def assert_warn_len_equal(mod, n_in_context):
mod_warns = mod.__warningregistry__
# Python 3 appears to clear any pre-existing warnings of the same type,
# when raising warnings inside a catch_warnings block. So, there is a
# warning generated by the tests within the context manager, but no
# previous warnings.
if 'version' in mod_warns:
> npt.assert_equal(len(mod_warns), 2) # including 'version'
E AssertionError:
E Items are not equal:
E ACTUAL: 1
E DESIRED: 2
fury\tests\test_testing.py:42: AssertionError
The text was updated successfully, but these errors were encountered: