From b77ac550a4fa4ff3a077cd4e27cbb7d23985e818 Mon Sep 17 00:00:00 2001 From: Raj Shah Date: Mon, 5 Jan 2026 05:11:09 -0800 Subject: [PATCH] Vibe code to fix uvloop test warnings --- tests/conftest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 3ff30bee..a712b096 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -17,6 +17,7 @@ import random +import sys import warnings from typing import AsyncGenerator from typing import Generator @@ -29,9 +30,10 @@ from pottery import PotteryWarning -@pytest.fixture(scope='session', autouse=True) -def install_uvloop() -> None: - uvloop.install() +if sys.version_info < (3, 14): + @pytest.fixture(scope='session', autouse=True) + def install_uvloop() -> None: + uvloop.install() @pytest.fixture(autouse=True)