Skip to content

Commit 079ddc8

Browse files
author
Mathieu Scheltienne
committed
try test fix suggested by larsoner
1 parent c76fe32 commit 079ddc8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nibabel/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
import numpy as np
12
import pytest
23

4+
from packaging.version import parse
5+
36
# Ignore warning requesting help with nicom
47
with pytest.warns(UserWarning):
58
import nibabel.nicom
9+
10+
11+
def pytest_configure(config):
12+
"""Configure pytest options."""
13+
if parse('1.26') <= parse(np.__version__):
14+
np.set_printoptions(legacy='1.25')

0 commit comments

Comments
 (0)