Skip to content

Commit 2d75ec9

Browse files
committed
test: Use legacy print options for doctests
1 parent 42dcd2b commit 2d75ec9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fmriprep/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def copytree_or_skip(source, target):
2626
pytest.skip(f'Cannot copy {data_dir!r} into {target / data_dir.name}. Probably in a zip.')
2727

2828

29+
@pytest.fixture(scope='session', autouse=True)
30+
def _legacy_printoptions():
31+
np.set_printoptions(legacy='1.21')
32+
33+
2934
@pytest.fixture(autouse=True)
3035
def _populate_namespace(doctest_namespace, tmp_path):
3136
doctest_namespace['copytree_or_skip'] = copytree_or_skip

0 commit comments

Comments
 (0)