1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
From: Brigitta Sipocz <bsipocz@gmail.com>
Date: Tue, 19 Nov 2019 15:47:21 -0800
Subject: Fixing header plugin
---
astroML/conftest.py | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/astroML/conftest.py b/astroML/conftest.py
index 3ff641a..488b952 100644
--- a/astroML/conftest.py
+++ b/astroML/conftest.py
@@ -1,13 +1,9 @@
-try:
- from astropy.tests.plugins.display import (pytest_report_header,
- PYTEST_HEADER_MODULES,
- TESTED_VERSIONS)
-except ImportError:
- # When using astropy 2.0
- from astropy.tests.pytest_plugins import (pytest_report_header,
- PYTEST_HEADER_MODULES,
- TESTED_VERSIONS)
+from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
+ TESTED_VERSIONS)
+
+def pytest_configure(config):
+ config.option.astropy_header = True
try:
PYTEST_HEADER_MODULES['Cython'] = 'Cython'
|