Skip to content

Commit 89203bb

Browse files
committed
don't count warnings
1 parent c41faad commit 89203bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nibabel/freesurfer/tests/test_io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_geometry():
5656
assert_equal(coords.shape[0], faces.max() + 1)
5757

5858
# Test quad with sphere
59-
with clear_and_catch_warnings() as w:
59+
with clear_and_catch_warnings():
6060
warnings.filterwarnings('always', category=DeprecationWarning)
6161
surf_path = pjoin(data_path, "surf", "%s.%s" % ("lh", "sphere"))
6262
coords, faces, volume_info, create_stamp = \
@@ -66,7 +66,6 @@ def test_geometry():
6666
assert_equal(0, len(volume_info))
6767
assert_equal(u'created by greve on Thu Jun 8 19:17:51 2006',
6868
create_stamp)
69-
assert_equal(len(w), 2)
7069

7170
# Test equivalence of freesurfer- and nibabel-generated triangular files
7271
# with respect to read_geometry()

0 commit comments

Comments
 (0)