def test_remove_astropy_time():
 t1 = Time('2007:001', scale='tai')
 assert ('astropy_time' not in t1.FORMATS)
 with pytest.raises(ValueError) as err:
  Time(t1, format='astropy_time')
 assert ('format must be one of' in str(err))

def test_remove_astropy_time ( ) : t1 = Time ( '2007:001' , scale = 'tai' ) assert ( 'astropy_time' not in t1 . FORMATS ) with pytest . raises ( ValueError ) as err : Time ( t1 , format = 'astropy_time' ) assert ( 'format must be one of' in str ( err ) )
make sure that astropy_time format is really gone after #3857 .