diff options
author | Simon Dollé <simon.dolle@gmail.com> | 2014-06-15 16:36:20 +0200 |
---|---|---|
committer | Simon Dollé <simon.dolle@gmail.com> | 2014-06-15 16:47:14 +0200 |
commit | 017dfa7efef5c0d84c83179c08633b82bd9a4eb2 (patch) | |
tree | a75980099313dbae10952f410ce9a1dd5c5c001f /test_retrying.py | |
parent | 868fcd8ede2d72fa5afb0207efbdfb430edeff07 (diff) | |
download | retrying-017dfa7efef5c0d84c83179c08633b82bd9a4eb2.tar.gz |
If possible, raise the last exception when stopping
When we stop retrying because of recurring exceptions,
we expect the decorator to raise the last exception.
(if wrap_exception==False)
This commit fixes issue #8.
Diffstat (limited to 'test_retrying.py')
-rw-r--r-- | test_retrying.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test_retrying.py b/test_retrying.py index eb2b10e..c163c41 100644 --- a/test_retrying.py +++ b/test_retrying.py @@ -311,7 +311,7 @@ class TestDecoratorWrapper(unittest.TestCase): print(n) try: - _retryable_test_with_exception_type_io_attempt_limit(NoIOErrorAfterCount(5)) + _retryable_test_with_exception_type_io_attempt_limit_wrap(NoIOErrorAfterCount(5)) self.fail("Expected RetryError") except RetryError as re: self.assertEqual(3, re.last_attempt.attempt_number) @@ -331,7 +331,7 @@ class TestDecoratorWrapper(unittest.TestCase): print(n) try: - _retryable_test_with_exception_type_custom_attempt_limit(NoCustomErrorAfterCount(5)) + _retryable_test_with_exception_type_custom_attempt_limit_wrap(NoCustomErrorAfterCount(5)) self.fail("Expected RetryError") except RetryError as re: self.assertEqual(3, re.last_attempt.attempt_number) |