Skip to content

Commit 521a460

Browse files
authored
Merge pull request #418 from pllim/clean-conftest
MNT: Clean conftest.py
2 parents 8ab2d16 + 99e3076 commit 521a460

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

regions/conftest.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# get picked up when running the tests inside an interpreter using
44
# packagename.test
55

6-
import os
7-
86
try:
97
import pytest_arraydiff
108
except ImportError:
@@ -32,15 +30,14 @@ def pytest_configure(config):
3230
# Customize the following lines to add/remove entries from the
3331
# list of packages for which version numbers are displayed when
3432
# running the tests.
35-
PYTEST_HEADER_MODULES['Cython'] = 'Cython' # noqa
36-
PYTEST_HEADER_MODULES['Numpy'] = 'numpy' # noqa
37-
PYTEST_HEADER_MODULES['Astropy'] = 'astropy' # noqa
38-
PYTEST_HEADER_MODULES['Matplotlib'] = 'matplotlib' # noqa
39-
PYTEST_HEADER_MODULES['Shapely'] = 'shapely' # noqa
40-
PYTEST_HEADER_MODULES.pop('scipy', None) # noqa
41-
PYTEST_HEADER_MODULES.pop('Pandas', None) # noqa
42-
PYTEST_HEADER_MODULES.pop('h5py', None) # noqa
33+
PYTEST_HEADER_MODULES['Cython'] = 'Cython'
34+
PYTEST_HEADER_MODULES['Numpy'] = 'numpy'
35+
PYTEST_HEADER_MODULES['Astropy'] = 'astropy'
36+
PYTEST_HEADER_MODULES['Matplotlib'] = 'matplotlib'
37+
PYTEST_HEADER_MODULES['Shapely'] = 'shapely'
38+
PYTEST_HEADER_MODULES.pop('scipy', None)
39+
PYTEST_HEADER_MODULES.pop('Pandas', None)
40+
PYTEST_HEADER_MODULES.pop('h5py', None)
4341

44-
from . import __version__
45-
packagename = os.path.basename(os.path.dirname(__file__))
46-
TESTED_VERSIONS[packagename] = __version__
42+
from regions import __version__
43+
TESTED_VERSIONS['regions'] = __version__

0 commit comments

Comments
 (0)