Skip to content

Commit

Permalink
Merge pull request #7363 from nabobalis/astropy
Browse files Browse the repository at this point in the history
Removal of try block in pytest fixture since we depend on astropy 5
  • Loading branch information
dstansby committed Jan 5, 2024
2 parents 2cbf8ca + e1e012d commit b4a7b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: "\\.asdf$"
repos:
# This should be before any formatting hooks like isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.9"
rev: "v0.1.11"
hooks:
- id: ruff
args: ["--fix"]
Expand Down
7 changes: 1 addition & 6 deletions sunpy/coordinates/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
def use_DE440s():
# This fixture is for test functions that want to use the JPL DE440s ephemeris
old_ephemeris = solar_system_ephemeris.get()
try:
solar_system_ephemeris.set('de440s')
except ValueError:
pytest.skip("The installed version of Astropy cannot set the ephemeris to DE440s")

solar_system_ephemeris.set('de440s')
yield

solar_system_ephemeris.set(old_ephemeris)

0 comments on commit b4a7b2e

Please sign in to comment.