Skip to content

Commit

Permalink
TST: fix toplevel conftest so pytest/tox on the toplevel picks up the…
Browse files Browse the repository at this point in the history
… printoption, too
  • Loading branch information
bsipocz committed Sep 13, 2023
1 parent 51316d7 commit 78f3683
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst

import numpy as np
from astropy.utils import minversion

from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
TESTED_VERSIONS)


# Keep this until we require numpy to be >=2.0
if minversion(np, "2.0.0.dev0+git20230726"):
np.set_printoptions(legacy="1.25")


def pytest_configure(config):
config.option.astropy_header = True

Expand Down

0 comments on commit 78f3683

Please sign in to comment.