#NEWLINE# @ unittest . skipIf ( os . environ . get ( 'TRAVIS' , False ) , 'Offscreen rendering is not tested on Travis due to lack of GLX support' ) #NEWLINE# def test_many_savefig_offscreen( self ) : #NEWLINE# #INDENT# 'Test if savefig works with off_screen_rendering and Engine' #NEWLINE# engine = Engine ( ) #NEWLINE# for _ in xrange ( 5 ) : #NEWLINE# #INDENT# self . setup_engine_and_figure ( engine ) #NEWLINE# self . figure . scene . off_screen_rendering = True #NEWLINE# create_quiver3d ( ) #NEWLINE# savefig ( self . filename , size = ( 131 , 217 ) , figure = self . figure )