Skip to content

Commit 10c2c42

Browse files
committed
hypothesis: all my problems were due to that one test
1 parent f476c48 commit 10c2c42

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

nibabel/cmdline/diff.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import nibabel as nib
2323
import nibabel.cmdline.utils
24-
import itertools
2524
import hashlib
2625

2726

@@ -93,7 +92,7 @@ def diff_headers(files, fields):
9392
pass
9493

9594
# compare current file with other files
96-
for i in files[f+1:]:
95+
for i in files[f + 1:]:
9796
other_field = i[h]
9897

9998
# sometimes field.item doesn't work

nibabel/cmdline/tests/test_utils.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,12 @@
55
Test running scripts
66
"""
77

8-
from numpy.testing import (assert_almost_equal,
9-
assert_array_equal)
10-
11-
from nose.tools import (assert_true, assert_false, assert_raises,
12-
assert_equal, assert_not_equal)
8+
from nose.tools import assert_equal
139

1410
import nibabel as nib
1511
from nibabel.cmdline.utils import *
1612
from nibabel.cmdline.diff import diff_header_fields, diff_headers
17-
from os.path import (dirname, join as pjoin, abspath, splitext, basename,
18-
exists)
13+
from os.path import (dirname, join as pjoin, abspath)
1914

2015

2116
DATA_PATH = abspath(pjoin(dirname(__file__), '../../tests/data'))

0 commit comments

Comments
 (0)