Skip to content

Commit fdcb7f4

Browse files
committed
TEST: Duplicate assertion
1 parent 33862e4 commit fdcb7f4

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

nibabel/tests/test_testing.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@
1313
get_fresh_mod, assert_re_in)
1414

1515

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-
2816
def test_assert_allclose_safely():
2917
# Test the safe version of allclose
3018
assert_allclose_safely([1, 1], [1, 1])

0 commit comments

Comments
 (0)