We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a150eeb commit c51abf8Copy full SHA for c51abf8
nipype/conftest.py
@@ -2,7 +2,7 @@
2
import shutil
3
from tempfile import mkdtemp
4
import pytest
5
-import numpy
+import numpy as np
6
import py.path as pp
7
8
NIPYPE_DATADIR = os.path.realpath(
@@ -15,12 +15,17 @@
15
16
@pytest.fixture(autouse=True)
17
def add_np(doctest_namespace):
18
- doctest_namespace["np"] = numpy
+ doctest_namespace["np"] = np
19
doctest_namespace["os"] = os
20
doctest_namespace["pytest"] = pytest
21
doctest_namespace["datadir"] = data_dir
22
23
24
+@pytest.fixture(scope='session', autouse=True)
25
+def legacy_printoptions():
26
+ np.set_printoptions(legacy='1.21')
27
+
28
29
30
def _docdir(request):
31
"""Grabbed from https://stackoverflow.com/a/46991331"""
0 commit comments