def test_set_format_does_not_share_subfmt():
 t = Time('+02000-02-03', format='fits', out_subfmt='longdate')
 t.format = 'isot'
 assert (t.out_subfmt == '*')
 assert (t.value == '2000-02-03T00:00:00.000')
 t.format = 'fits'
 assert (t.out_subfmt == '*')
 assert (t.value == '2000-02-03T00:00:00.000(UTC)')

def test_set_format_does_not_share_subfmt ( ) : t = Time ( '+02000-02-03' , format = 'fits' , out_subfmt = 'longdate' ) t . format = 'isot' assert ( t . out_subfmt == '*' ) assert ( t . value == '2000-02-03T00:00:00.000' ) t . format = 'fits' assert ( t . out_subfmt == '*' ) assert ( t . value == '2000-02-03T00:00:00.000(UTC)' )
set format and round trip through a format that does not share out_subfmt .