@@ -0,0 +1,54 @@
1+diff -ruN astroquery-0.3.9.orig/astroquery/conftest.py astroquery-0.3.9/astroquery/conftest.py
2+--- astroquery-0.3.9.orig/astroquery/conftest.py 2018-11-27 14:51:16.000000000 +0100
3++++ astroquery-0.3.9/astroquery/conftest.py 2019-07-23 18:19:17.000000000 +0200
4+@@ -5,15 +5,20 @@
5+ # by importing them here in conftest.py they are discoverable by py.test
6+ # no matter how it is invoked within the source tree.
7+
8+-from astropy.tests.pytest_plugins import (PYTEST_HEADER_MODULES,
9+- enable_deprecations_as_exceptions,
10+- TESTED_VERSIONS)
11++from astropy.version import version as astropy_version
12+
13+-try:
14+- packagename = os.path.basename(os.path.dirname(__file__))
15+- TESTED_VERSIONS[packagename] = version.version
16+-except NameError:
17+- pass
18++if astropy_version < '3.0':
19++ # With older versions of Astropy, we actually need to import the pytest
20++ # plugins themselves in order to make them discoverable by pytest.
21++ from astropy.tests.pytest_plugins import *
22++else:
23++ # As of Astropy 3.0, the pytest plugins provided by Astropy are
24++ # automatically made available when Astropy is installed. This means it's
25++ # not necessary to import them here, but we still need to import global
26++ # variables that are used for configuration.
27++ from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
28++
29++from astropy.tests.helper import enable_deprecations_as_exceptions
30+
31+ # Add astropy to test header information and remove unused packages.
32+ # Pytest header customisation was introduced in astropy 1.0.
33+@@ -36,12 +41,17 @@
34+ # The warnings_to_ignore_by_pyver parameter was added in astropy 2.0
35+ enable_deprecations_as_exceptions(modules_to_ignore_on_import=['requests'])
36+
37++# add '_testrun' to the version name so that the user-agent indicates that
38++# it's being run in a test
39++from . import version
40++version.version += '_testrun'
41++
42++
43+ # This is to figure out the affiliated package version, rather than
44+ # using Astropy's
45+-try:
46+- from .version import version
47+-except ImportError:
48+- version = 'dev'
49++from .version import version, astropy_helpers_version
50++
51+
52+ packagename = os.path.basename(os.path.dirname(__file__))
53+ TESTED_VERSIONS[packagename] = version
54++TESTED_VERSIONS['astropy_helpers'] = astropy_helpers_version