We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e372a6 commit 5a40ef6Copy full SHA for 5a40ef6
src/trio/_core/_tests/test_instrumentation.py
@@ -295,12 +295,11 @@ def h(
295
self: Instrument,
296
*args: object,
297
hook: str = hook,
298
- val: tuple[bool | None, bool | None] = val,
+ val: tuple[bool, bool | None] = val,
299
) -> None:
300
fail_str = f"failed in {hook}"
301
302
- if val[0] is not None:
303
- assert _core.in_trio_run() == val[0], fail_str
+ assert _core.in_trio_run() == val[0], fail_str
304
if val[1] is not None:
305
assert _core.in_trio_task() == val[1], fail_str
306
called.add(hook)
0 commit comments