#NEWLINE# def test_filename_with_colon( self ) : #NEWLINE# #INDENT# '\n            Test reading and writing a file with a colon in the filename.\n\n            Regression test for https://github.com/astropy/astropy/issues/3122\n            ' #NEWLINE# filename = 'APEXHET.2014-04-01T15:18:01.000.fits' #NEWLINE# hdu = fits . PrimaryHDU ( data = np . arange ( 10 ) ) #NEWLINE# hdu . writeto ( self . temp ( filename ) ) #NEWLINE# with fits . open ( self . temp ( filename ) ) as hdul : #NEWLINE# #INDENT# assert np . all ( ( hdul [ 0 ] . data == hdu . data ) )