#NEWLINE# @ dec . knownfailureif ( True , msg = 'Unreliable test, see ticket 1684.' ) #NEWLINE# def test_improvement( self ) : #NEWLINE# #INDENT# import time #NEWLINE# start = time . time ( ) #NEWLINE# for i in xrange ( 100 ) : #NEWLINE# #INDENT# quad ( fast . lib . sin , 0 , 100 ) #NEWLINE# #UNINDENT# fast = ( time . time ( ) - start ) #NEWLINE# start = time . time ( ) #NEWLINE# for i in xrange ( 100 ) : #NEWLINE# #INDENT# quad ( math . sin , 0 , 100 ) #NEWLINE# #UNINDENT# slow = ( time . time ( ) - start ) #NEWLINE# assert_ ( ( fast < ( 0.5 * slow ) ) , ( fast , slow ) )