Skip to content

Commit

Permalink
Print astropy_helpers used here rather than in astropy to the test he…
Browse files Browse the repository at this point in the history
…ader
  • Loading branch information
bsipocz committed Jan 2, 2019
1 parent 5157177 commit 4e1d2ab
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions astroquery/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
enable_deprecations_as_exceptions,
TESTED_VERSIONS)

try:
packagename = os.path.basename(os.path.dirname(__file__))
TESTED_VERSIONS[packagename] = version.version
except NameError:
pass

# Add astropy to test header information and remove unused packages.
# Pytest header customisation was introduced in astropy 1.0.

Expand Down Expand Up @@ -44,8 +38,9 @@

# This is to figure out the affiliated package version, rather than
# using Astropy's
from .version import version
from .version import version, astropy_helpers_version


packagename = os.path.basename(os.path.dirname(__file__))
TESTED_VERSIONS[packagename] = version
TESTED_VERSIONS['astropy_helpers'] = astropy_helpers_version

0 comments on commit 4e1d2ab

Please sign in to comment.