#NEWLINE# def test_retry_on_normal_error( b , collect ) : #NEWLINE# #INDENT# 'Ensure retries are processed for most errors.' #NEWLINE# key_name = 'test-key-name' #NEWLINE# k = key . Key ( bucket = b , name = key_name ) #NEWLINE# collect . inject ( Exception ( 'Normal error' ) ) #NEWLINE# d = s3_deleter . Deleter ( ) #NEWLINE# d . delete ( k ) #NEWLINE# while ( len ( collect . aborted_keys ) < 2 ) : #NEWLINE# #INDENT# gevent . sleep ( 0.1 ) #NEWLINE# #UNINDENT# assert ( not collect . deleted_keys ) #NEWLINE# collect . inject ( None ) #NEWLINE# d . close ( ) #NEWLINE# assert ( collect . deleted_keys == [ key_name ] )