Skip to content

Commit 78f3683

Browse files
committed
TST: fix toplevel conftest so pytest/tox on the toplevel picks up the printoption, too
1 parent 51316d7 commit 78f3683

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conftest.py

+8
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)