Skip to content

Commit ec634fc

Browse files
committed
Improve frame testing with one caveat
See astropy/astropy#7793 for some known pitfalls.
1 parent 0ccf631 commit ec634fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/poliastro/tests/tests_twobody/test_orbit.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def test_orbit_is_pickable():
249249
(Sun, HCRS),
250250
(Mercury, MercuryICRS),
251251
(Venus, VenusICRS),
252-
(Earth, GCRS),
252+
pytest.param(Earth, GCRS, marks=pytest.mark.xfail), # See https://github.com/astropy/astropy/issues/7793
253253
(Mars, MarsICRS),
254254
(Jupiter, JupiterICRS),
255255
(Saturn, SaturnICRS),
@@ -265,7 +265,7 @@ def test_orbit_has_proper_frame(attractor, expected_frame_class):
265265

266266
ss = Orbit.from_vectors(attractor, r, v, epoch)
267267

268-
assert ss.frame.__class__ == expected_frame_class
268+
assert ss.frame.is_equivalent_frame(expected_frame_class(obstime=epoch))
269269
assert ss.frame.obstime == epoch
270270

271271

0 commit comments

Comments
 (0)