Skip to content

Commit 2c3b43d

Browse files
committed
FIX: Only need legacy if on 2.0
1 parent 319f23f commit 2c3b43d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nibabel/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88

99
def pytest_configure(config):
1010
"""Configure pytest options."""
11-
np.set_printoptions(legacy=125)
11+
if int(np.__version__[0]) >= 2:
12+
np.set_printoptions(legacy=125)

0 commit comments

Comments
 (0)