Skip to content

Commit 3793876

Browse files
committed
BF: fix doctest failure with pre-release numpy
Numpy output printing has changed in upcoming 1.14 - trigger legacy printing for doctests.
1 parent b1bf5e7 commit 3793876

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nibabel/nicom/dwiparams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
'''
2222
import numpy as np
2323
import numpy.linalg as npl
24-
from ..testing import setup_test # flake8: noqa F401
24+
from ..testing import setup_test as setup_module # flake8: noqa F401
2525

2626

2727
def B2q(B, tol=None):

nibabel/testing/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,4 @@ def setup_test():
218218
"""
219219
from distutils.version import LooseVersion
220220
if LooseVersion(np.__version__) >= LooseVersion('1.14'):
221-
np.set_printoptions(sign='legacy')
221+
np.set_printoptions(legacy="1.13")

0 commit comments

Comments
 (0)