Skip to content

Commit 6515f5f

Browse files
authored
Merge pull request #2826 from bsipocz/numpydev_printfix_for_docs
TST: fix toplevel conftest
2 parents 5891b94 + 78f3683 commit 6515f5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22

3+
import numpy as np
4+
from astropy.utils import minversion
5+
36
from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
47
TESTED_VERSIONS)
58

69

10+
# Keep this until we require numpy to be >=2.0
11+
if minversion(np, "2.0.0.dev0+git20230726"):
12+
np.set_printoptions(legacy="1.25")
13+
14+
715
def pytest_configure(config):
816
config.option.astropy_header = True
917

0 commit comments

Comments
 (0)