Skip to content

Commit 1c6ea64

Browse files
committed
RF: Remove nose test state code
1 parent c9d9eba commit 1c6ea64

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

nibabel/__init__.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,6 @@
3636
For more detailed information see the :ref:`manual`.
3737
"""
3838

39-
# Package-wide test setup and teardown
40-
_test_states = {
41-
# Numpy changed print options in 1.14; we can update docstrings and remove
42-
# these when our minimum for building docs exceeds that
43-
'legacy_printopt': None,
44-
}
45-
46-
def setup_package():
47-
""" Set numpy print style to legacy="1.13" for newer versions of numpy """
48-
import numpy as np
49-
from distutils.version import LooseVersion
50-
if LooseVersion(np.__version__) >= LooseVersion('1.14'):
51-
if _test_states.get('legacy_printopt') is None:
52-
_test_states['legacy_printopt'] = np.get_printoptions().get('legacy')
53-
np.set_printoptions(legacy="1.13")
54-
55-
def teardown_package():
56-
""" Reset print options when tests finish """
57-
import numpy as np
58-
if _test_states.get('legacy_printopt') is not None:
59-
np.set_printoptions(legacy=_test_states.pop('legacy_printopt'))
60-
61-
6239
# module imports
6340
from . import analyze as ana
6441
from . import spm99analyze as spm99

0 commit comments

Comments
 (0)