Skip to content

Commit c8b9983

Browse files
committed
test: avoid redundant cancel assertions in stdio EOF monitor tests
1 parent 8232b87 commit c8b9983

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/server/test_stdio.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ async def test_stdin_eof_monitor_detects_hangup():
105105
with anyio.fail_after(5):
106106
while not tg.cancel_scope.cancel_called:
107107
await anyio.sleep(0.05)
108-
109-
assert tg.cancel_scope.cancel_called
110108
finally:
111109
os.close(read_fd)
112110
if write_fd != -1: # pragma: no cover
@@ -145,8 +143,6 @@ async def test_stdin_eof_monitor_ignores_pollin_events():
145143
with anyio.fail_after(5):
146144
while not tg.cancel_scope.cancel_called:
147145
await anyio.sleep(0.05)
148-
149-
assert tg.cancel_scope.cancel_called
150146
finally:
151147
os.close(read_fd)
152148
if write_fd != -1: # pragma: no cover

0 commit comments

Comments
 (0)