示例#1
0
 def when_i_retry_the_function(self):
     self.result = retry_(self.function_to_retry, [ValueError, IndexError], 3, 0.001, lambda e, x: None, *self.expected_args, **self.expected_kwargs)
示例#2
0
 def when_i_retry_the_function(self):
     self.result = retry_(self.function_to_retry, [ValueError, IndexError],
                          3, 0.001, lambda e, x: None, *self.expected_args,
                          **self.expected_kwargs)
示例#3
0
 def when_i_retry_the_function(self):
     self.result = retry_(self.function_to_retry, Exception, 3, 0.001, lambda e, x: None, *self.expected_args, **self.expected_kwargs)
示例#4
0
 def when_i_retry_the_function(self):
     self.result = retry_(self.function_to_retry, Exception, 3, 0.001,
                          lambda e, x: None, *self.expected_args,
                          **self.expected_kwargs)