Skip to content

Commit 795580f

Browse files
author
Ben Cipollini
committed
STY: code changes per code review.
1 parent 50f147c commit 795580f

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

nibabel/openers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import gzip
1414
import sys
1515
from os.path import splitext
16-
from distutils.version import LooseVersion
1716

1817

1918
# The largest memory chunk that gzip can use for reads

nibabel/testing/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,10 @@ def __init__(self, *args, **kwargs):
168168
FutureWarning)
169169

170170

171+
EXTRA_SET = os.environ.get('NIPY_EXTRA_TESTS', '').split(',')
172+
173+
171174
def runif_extra_has(test_str):
172175
"""Decorator checks to see if NIPY_EXTRA_TESTS env var contains test_str"""
173-
def decorator(func):
174-
skip_set = os.environ.get('NIPY_EXTRA_TESTS', '').split(',')
175-
return skipif(test_str not in skip_set, "Skip slow tests.")(func)
176-
return decorator
176+
return skipif(test_str not in EXTRA_SET,
177+
"Skip {0} tests.".format(test_str))

nibabel/tests/test_nifti1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ def test_large_nifti1():
12551255
img.to_filename('test.nii.gz')
12561256
del img
12571257
data = load('test.nii.gz').get_data()
1258-
# Check that te data are all ones
1258+
# Check that the data are all ones
12591259
assert_equal(image_shape, data.shape)
12601260
n_ones = np.sum((data == 1.))
12611261
assert_equal(np.prod(image_shape), n_ones)

0 commit comments

Comments
 (0)