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

Commit b5f59ca

Browse files
committed
remove format, to make pull request clearly.
1 parent 6c87735 commit b5f59ca

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

exceptiongroup/_tests/test_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_split_when_all_exception_matched():
2424
group = ExceptionGroup(
2525
"Many Errors",
2626
[RuntimeError("Runtime Error1"), RuntimeError("Runtime Error2")],
27-
["Runtime Error1", "Runtime Error2"],
27+
["Runtime Error1", "Runtime Error2"]
2828
)
2929
matched, unmatched = split(RuntimeError, group)
3030
assert matched is group
@@ -35,7 +35,7 @@ def test_split_when_all_exception_unmatched():
3535
group = ExceptionGroup(
3636
"Many Errors",
3737
[RuntimeError("Runtime Error1"), RuntimeError("Runtime Error2")],
38-
["Runtime Error1", "Runtime Error2"],
38+
["Runtime Error1", "Runtime Error2"]
3939
)
4040
matched, unmatched = split(ValueError, group)
4141
assert matched is None

exceptiongroup/_tools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,11 @@ def __exit__(self, etype, exc, tb):
124124
exceptiongroup_catch_exc = handler_exc
125125
else:
126126
exceptiongroup_catch_exc = ExceptionGroup(
127-
"caught {}".format(self._exc_type.__class__.__name__),
127+
"caught {}".format(
128+
self._exc_type.__class__.__name__
129+
),
128130
[handler_exc, rest],
129-
["exception raised by handler", "uncaught exceptions"],
131+
["exception raised by handler", "uncaught exceptions"]
130132
)
131133
else:
132134
exceptiongroup_catch_exc = rest

0 commit comments

Comments
 (0)