File: conftest.py

package info (click to toggle)
healpy 1.19.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 17,464 kB
  • sloc: ansic: 113,657; cpp: 15,827; python: 10,793; sh: 8,443; yacc: 5,410; fortran: 2,613; lex: 553; makefile: 380
file content (16 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import numpy as np


def pytest_configure(config):
    np.set_printoptions(legacy="1.13")

    config.option.astropy_header = True
    try:
        from pytest_astropy_header.display import PYTEST_HEADER_MODULES

        PYTEST_HEADER_MODULES.pop("Pandas", None)
        PYTEST_HEADER_MODULES.pop("h5py", None)
        PYTEST_HEADER_MODULES["astropy"] = "astropy"
        PYTEST_HEADER_MODULES["cython"] = "cython"
    except ImportError:
        pass