We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33862e4 commit fdcb7f4Copy full SHA for fdcb7f4
nibabel/tests/test_testing.py
@@ -13,18 +13,6 @@
13
get_fresh_mod, assert_re_in)
14
15
16
-def assert_warn_len_equal(mod, n_in_context):
17
- mod_warns = mod.__warningregistry__
18
- # Python 3.4 appears to clear any pre-existing warnings of the same type,
19
- # when raising warnings inside a catch_warnings block. So, there is a
20
- # warning generated by the tests within the context manager, but no
21
- # previous warnings.
22
- if 'version' in mod_warns:
23
- assert_equal(len(mod_warns), 2) # including 'version'
24
- else:
25
- assert_equal(len(mod_warns), n_in_context)
26
-
27
28
def test_assert_allclose_safely():
29
# Test the safe version of allclose
30
assert_allclose_safely([1, 1], [1, 1])
0 commit comments