blob: 6c2c9e67255f1d1543fa0f1081c2d6b1c5c0655e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/tests/concurrency.py b/tests/concurrency.py
index a8ed558..d5ce803 100644
--- a/tests/concurrency.py
+++ b/tests/concurrency.py
@@ -5,11 +5,11 @@ Async environment-agnostic concurrency utilities that are only used in tests.
import asyncio
import sniffio
-import trio
async def sleep(seconds: float) -> None:
if sniffio.current_async_library() == "trio":
+ import trio
await trio.sleep(seconds) # pragma: no cover
else:
await asyncio.sleep(seconds)
|