Skip to content

Commit 3082a81

Browse files
committed
Update spectral coord test for new __eq__
1 parent c944a9d commit 3082a81

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎astropy/coordinates/tests/test_spectral_coordinate.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ def test_create_spectral_coord_observer_target(observer, target):
125125
if observer is None or target is None:
126126
assert quantity_allclose(coord.redshift, 0)
127127
assert quantity_allclose(coord.radial_velocity, 0 * u.km/u.s)
128-
elif observer in LSRD_EQUIV and target in LSRD_DIR_STATIONARY_EQUIV:
128+
elif (any(observer is lsrd for lsrd in LSRD_EQUIV)
129+
and any(target is lsrd for lsrd in LSRD_DIR_STATIONARY_EQUIV)):
129130
assert_quantity_allclose(coord.radial_velocity, -274 ** 0.5 * u.km / u.s, atol=1e-4 * u.km / u.s)
130131
assert_quantity_allclose(coord.redshift, -5.5213158163147646e-05, atol=1e-9)
131132
else:

0 commit comments

Comments
 (0)