Skip to content

Commit e4d00ba

Browse files
author
Anton
committed
fix: tests
1 parent 74793e8 commit e4d00ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_semaphore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ async def c3() -> None:
3434
sem.release()
3535
t2.cancel()
3636

37-
async with anyio.maybe_async_cm(anyio.move_on_after(1)):
37+
with anyio.fail_after(1):
3838
await asyncio.gather(t1, t2, t3, return_exceptions=True)

0 commit comments

Comments
 (0)