Skip to content

Commit

Permalink
ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Oct 31, 2024
1 parent 04ea6f4 commit 7034b62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions tenacity/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
if sys.version_info < (3, 11):
from exceptiongroup import BaseExceptionGroup


class retry_base(abc.ABC):
"""Abstract base class for retry strategies."""

Expand Down
4 changes: 1 addition & 3 deletions tests/test_tenacity.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ def test_retry_if_exception_of_type_exceptiongroup(self):
with pytest.raises(ExceptionGroup):
self.assertTrue(
_retryable_test_with_exception_type_io(
NoExceptionGroupAfterCount(5, exceptions=(IOError(),ValueError()))
NoExceptionGroupAfterCount(5, exceptions=(IOError(), ValueError()))
)
)
# not supported
Expand All @@ -1108,8 +1108,6 @@ def test_retry_if_exception_of_type_exceptiongroup(self):
)
)



def test_retry_except_exception_of_type(self):
self.assertTrue(
_retryable_test_if_not_exception_type_io(NoNameErrorAfterCount(5))
Expand Down

0 comments on commit 7034b62

Please sign in to comment.