@pytest.mark.parametrize(u'gframe', gcrs_frames)
def test_icrs_gcrs_dist_diff(gframe):
 gcrsnod = icrs_coords[0].transform_to(gframe)
 gcrswd = icrs_coords[1].transform_to(gframe)
 assert (not allclose(gcrswd.ra, gcrsnod.ra, rtol=1e-08, atol=(1e-10 * u.deg)))
 assert (not allclose(gcrswd.dec, gcrsnod.dec, rtol=1e-08, atol=(1e-10 * u.deg)))
 assert (not allclose(gcrswd.distance, icrs_coords[1].distance, rtol=1e-08, atol=(1e-10 * u.pc)))

@ pytest . mark . parametrize ( u'gframe' , gcrs_frames ) def test_icrs_gcrs_dist_diff ( gframe ) : gcrsnod = icrs_coords [ 0 ] . transform_to ( gframe ) gcrswd = icrs_coords [ 1 ] . transform_to ( gframe ) assert ( not allclose ( gcrswd . ra , gcrsnod . ra , rtol = 1e-08 , atol = ( 1e-10 * u . deg ) ) ) assert ( not allclose ( gcrswd . dec , gcrsnod . dec , rtol = 1e-08 , atol = ( 1e-10 * u . deg ) ) ) assert ( not allclose ( gcrswd . distance , icrs_coords [ 1 ] . distance , rtol = 1e-08 , atol = ( 1e-10 * u . pc ) ) )
check that with and without distance give different icrs<->gcrs answers .