def test_regression_futuretimes_4302():
 from ...utils.exceptions import AstropyWarning
 from ..builtin_frames import utils
 if hasattr(utils, u'__warningregistry__'):
  utils.__warningregistry__.clear()
 with catch_warnings() as found_warnings:
  future_time = Time(u'2511-5-1')
  c = CIRS((1 * u.deg), (2 * u.deg), obstime=future_time)
  c.transform_to(ITRS(obstime=future_time))
 if (not isinstance(iers.IERS_Auto.iers_table, iers.IERS_Auto)):
  saw_iers_warnings = False
  for w in found_warnings:
   if issubclass(w.category, AstropyWarning):
    if (u'(some) times are outside of range covered by IERS table' in str(w.message)):
     saw_iers_warnings = True
     break
  assert saw_iers_warnings, u'Never saw IERS warning'

def test_regression_futuretimes_4302 ( ) : from ... utils . exceptions import AstropyWarning from . . builtin_frames import utils if hasattr ( utils , u'__warningregistry__' ) : utils . __warningregistry__ . clear ( ) with catch_warnings ( ) as found_warnings : future_time = Time ( u'2511-5-1' ) c = CIRS ( ( 1 * u . deg ) , ( 2 * u . deg ) , obstime = future_time ) c . transform_to ( ITRS ( obstime = future_time ) ) if ( not isinstance ( iers . IERS_Auto . iers_table , iers . IERS_Auto ) ) : saw_iers_warnings = False for w in found_warnings : if issubclass ( w . category , AstropyWarning ) : if ( u'(some) times are outside of range covered by IERS table' in str ( w . message ) ) : saw_iers_warnings = True break assert saw_iers_warnings , u'Never saw IERS warning'
checks that an error is not raised for future times not covered by iers tables .