We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cd87a2 commit 1d6a33aCopy full SHA for 1d6a33a
1 file changed
tests/conftest.py
@@ -45,7 +45,13 @@ def setup_and_teardown_package():
45
iers.conf.auto_max_age = None
46
47
# Also ensure that we're downloading the site data from astropy
48
- EarthLocation._get_site_registry(force_download=True)
+ try:
49
+ # the parameter name was changed in astropy 8.0.0 as a part of fixing
50
+ # the refresh_cache keyword on the various astropy site functions
51
+ # This can be removed when we require astropy >= 8.0
52
+ EarthLocation._get_site_registry(force_download=True)
53
+ except TypeError:
54
+ EarthLocation._get_site_registry(refresh_cache=True)
55
56
yield
57
0 commit comments