From fecf9d6d4c41f688f92331a0306a5ed8ed939b81 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 27 Sep 2024 11:49:19 +0100 Subject: [PATCH] Handle import of `trio` raising `NotImplementedError` on unsupported platforms. Closes #946 --- httpcore/_synchronization.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpcore/_synchronization.py b/httpcore/_synchronization.py index 9619a3983..50cfefe0a 100644 --- a/httpcore/_synchronization.py +++ b/httpcore/_synchronization.py @@ -9,7 +9,7 @@ try: import trio -except ImportError: # pragma: nocover +except (ImportError, NotImplementedError): # pragma: nocover trio = None # type: ignore try: