| 1 |
From: Tianyu Chen <[email protected]> |
| 2 |
Date: Thu, 13 Aug 2026 22:26:59 +0800 |
| 3 |
Subject: Use asyncio instead of async_timeout |
| 4 |
|
| 5 |
--- |
| 6 |
tests/conftest.py | 5 ++++- |
| 7 |
1 file changed, 4 insertions(+), 1 deletion(-) |
| 8 |
|
| 9 |
diff --git a/tests/conftest.py b/tests/conftest.py |
| 10 |
index 21b9e96..8a8cf5e 100644 |
| 11 |
--- a/tests/conftest.py |
| 12 |
+++ b/tests/conftest.py |
| 13 |
@@ -12,7 +12,10 @@ from pathlib import Path |
| 14 |
import pytest |
| 15 |
import pytest_asyncio |
| 16 |
import trustme |
| 17 |
|
| 18 |
+try: |
| 19 |
+ from asyncio import timeout |
| 20 |
+except ImportError: |
| 21 |
+ from async_timeout import timeout |
| 22 |
try: |
| 23 |
from siosocks.io.asyncio import socks_server_handler |
| 24 |
except ImportError: |