Skip to content

Commit

Permalink
Ensure tests pass on pyerfa-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mhvk committed May 29, 2021
1 parent 62a488c commit d0e3298
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion astropy/units/tests/test_structured_erfa_ufuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

from astropy import units as u
from astropy.tests.helper import assert_quantity_allclose
from astropy.utils.introspection import minversion


ERFA_LE_2_0_0 = not minversion(erfa, '2.0.0.1')


class TestPVUfuncs:
Expand All @@ -31,7 +35,8 @@ def test_p2pv(self):
assert_array_equal(p2pv['p'], self.pv['p'])
assert_array_equal(p2pv['v'], np.zeros(self.pv.shape+(3,), float) << u.m/u.s)

@pytest.mark.xfail(reason='erfa bug; https://github.com/liberfa/pyerfa/issues/70)')
@pytest.mark.xfail(erfa.__version__ <= '2.0.0',
reason='erfa bug; https://github.com/liberfa/pyerfa/issues/70)')
def test_p2pv_inplace(self):
# TODO: fix np.zeros_like.
out = np.zeros_like(self.pv_value) << self.pv_unit
Expand Down

0 comments on commit d0e3298

Please sign in to comment.