diff --git a/httpx/_utils.py b/httpx/_utils.py index 21241967e3..bc3cb001dd 100644 --- a/httpx/_utils.py +++ b/httpx/_utils.py @@ -295,14 +295,10 @@ async def _get_time(self) -> float: import trio return trio.current_time() - elif library == "curio": # pragma: no cover - import curio - - return typing.cast(float, await curio.clock()) - - import asyncio + else: + import asyncio - return asyncio.get_event_loop().time() + return asyncio.get_event_loop().time() def sync_start(self) -> None: self.started = time.perf_counter()