We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 429284b commit e4ae4d2Copy full SHA for e4ae4d2
tests/server/test_stdio.py
@@ -107,7 +107,7 @@ async def test_stdin_eof_monitor_detects_hangup():
107
# detects POLLHUP. Wait with a timeout to avoid hanging.
108
with anyio.fail_after(5):
109
await anyio.sleep(10) # will be cancelled by monitor
110
- cancelled = scope.cancel_called or tg.cancel_scope.cancel_called
+ cancelled = scope.cancel_called
111
assert cancelled
112
finally:
113
os.close(read_fd)
0 commit comments