File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,10 @@ def test_priority_scheduler_TLETarget():
369369 start_time = Time ('2035-08-02 10:00:00' )
370370 end_time = start_time + 1 * u .hour
371371 schedule = Schedule (start_time , end_time )
372- with pytest .warns (InvalidTLEDataWarning ):
372+
373+ # InvalidTLEDataWarning/AstropyWarning and
374+ # ErfaWarning: ERFA function "utctai" yielded 121 of "dubious year (Note 3)"
375+ with pytest .warns ():
373376 scheduler (blocks , schedule )
374377 assert len (schedule .observing_blocks ) == 3
375378 assert all ([schedule .observing_blocks [0 ].target == vega ,
Original file line number Diff line number Diff line change @@ -151,14 +151,18 @@ def test_TLETarget():
151151 assert altaz_observer .separation (altaz_skyfield ) < 20 * u .arcsec
152152
153153 # Time too far in the future where elements stop making physical sense
154- with pytest .warns (): # ErfaWarning: ERFA function "dtf2d" yielded 1 of "dubious year (Note 6)
154+ with pytest .warns (): # ErfaWarning: ERFA function "dtf2d" yielded 1 of "dubious year (Note 6)
155155 time_invalid = Time ("2035-08-02 10:00" , scale = 'utc' )
156156 times_list = list (times )
157157 times_list [2 ] = Time ("2035-08-02 10:00" , scale = 'utc' )
158158 times_invalid = Time (times_list )
159- with pytest .warns (InvalidTLEDataWarning ):
159+ # InvalidTLEDataWarning and
160+ # ErfaWarning: ERFA function "utctai" yielded 1 of "dubious year (Note 3)"
161+ with pytest .warns ():
160162 assert np .isnan (tle_target1 .coord (time_invalid ).ra )
161- with pytest .warns (InvalidTLEDataWarning ):
163+ # InvalidTLEDataWarning and
164+ # ErfaWarning: ERFA function "utctai" yielded 1 of "dubious year (Note 3)"
165+ with pytest .warns ():
162166 assert np .isnan (tle_target1 .coord (times_invalid )[2 ].ra )
163167
164168
You can’t perform that action at this time.
0 commit comments