#NEWLINE# def test_imap_timeout_exception_handler_returns_false( self ) : #NEWLINE# #INDENT# '\n        ensure map-compatible behaviour for a handler that returns False\n        ' #NEWLINE# def exception_handler( request , exception ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# reqs = [ grequests . get ( httpbin ( 'delay/1' ) , timeout = 0.001 ) ] #NEWLINE# out = [ ] #NEWLINE# for r in grequests . imap ( reqs , exception_handler = exception_handler ) : #NEWLINE# #INDENT# out . append ( r ) #NEWLINE# #UNINDENT# self . assertEquals ( out , [ ] )