Skip to content
This repository was archived by the owner on Nov 2, 2022. It is now read-only.

Commit e0ab8de

Browse files
committed
fix docstring, and rename test file.
1 parent a45781c commit e0ab8de

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

exceptiongroup/_tests/test_exceptiongroup.py renamed to exceptiongroup/_tests/test_tools.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import traceback
21
from exceptiongroup import ExceptionGroup, split, catch
32

43

exceptiongroup/_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __exit__(self, etype, exc, tb):
143143

144144
def catch(exc_type, handler, match=None):
145145
"""Return a context manager that catches and re-throws exception.
146-
after running :meth:`match` on them.
146+
after running :meth:`handle` on them.
147147
148148
Args:
149149
exc_type: An exception type or A tuple of exception type that need

0 commit comments

Comments
 (0)