Skip to content

Commit e4ae4d2

Browse files
committed
test: avoid possibly-unbound task group variable
1 parent 429284b commit e4ae4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/server/test_stdio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def test_stdin_eof_monitor_detects_hangup():
107107
# detects POLLHUP. Wait with a timeout to avoid hanging.
108108
with anyio.fail_after(5):
109109
await anyio.sleep(10) # will be cancelled by monitor
110-
cancelled = scope.cancel_called or tg.cancel_scope.cancel_called
110+
cancelled = scope.cancel_called
111111
assert cancelled
112112
finally:
113113
os.close(read_fd)

0 commit comments

Comments
 (0)