Skip to content

Commit 1c2eef1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 78782b4 commit 1c2eef1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_subshell_wedge.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _run_on_loop(loop, func):
4646
def runner():
4747
try:
4848
box["result"] = func()
49-
except BaseException as exc: # noqa: BLE001 - re-raised on the calling thread
49+
except BaseException as exc:
5050
box["error"] = exc
5151
finally:
5252
done.set()
@@ -146,18 +146,19 @@ def strand_then_reply():
146146
)
147147
assert received and received[-1][-1] == b"req-1"
148148
finally:
149+
149150
def teardown():
150151
if manager is not None:
151152
try:
152153
manager.close()
153-
except Exception: # noqa: BLE001 - best-effort teardown
154+
except Exception:
154155
pass
155156
if stream is not None:
156157
stream.close()
157158

158159
try:
159160
_run_on_loop(loop, teardown)
160-
except Exception: # noqa: BLE001 - best-effort teardown
161+
except Exception:
161162
pass
162163
loop.add_callback(loop.stop)
163164
thread.join(timeout=TIMEOUT)

0 commit comments

Comments
 (0)