15
0

Compare commits

4 Commits

3 changed files with 18 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
--- nest_asyncio-1.6.0/tests/nest_test.py
+++ nest_asyncio-1.6.0/tests/nest_test.py
@@ -62,6 +62,7 @@ class NestTest(unittest.TestCase):
result = self.loop.run_until_complete(f())
self.assertEqual(result, 42)
+ @unittest.skipIf(sys.version_info >= (3, 14), "Fails due to stricter asyncio timeout checks in Python 3.14+")
def test_timeout(self):
async def f1():

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Oct 16 07:31:04 UTC 2025 - Dirk Müller <dmueller@suse.com>
- add py314-skip-timeout-test.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 2 14:37:25 UTC 2025 - Markéta Machová <mmachova@suse.com> Mon Jun 2 14:37:25 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-nest-asyncio # spec file for package python-nest-asyncio
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,7 @@ Summary: Patch asyncio to allow nested event loops
License: BSD-2-Clause License: BSD-2-Clause
URL: https://github.com/erdewit/nest_asyncio URL: https://github.com/erdewit/nest_asyncio
Source: https://files.pythonhosted.org/packages/source/n/nest_asyncio/nest_asyncio-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/n/nest_asyncio/nest_asyncio-%{version}.tar.gz
Patch1: py314-skip-timeout-test.patch
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
@@ -47,7 +48,7 @@ This module patches asyncio to allow nested use of ``asyncio.run`` and
``loop.run_until_complete``. ``loop.run_until_complete``.
%prep %prep
%setup -q -n nest_asyncio-%{version} %autosetup -p1 -n nest_asyncio-%{version}
%build %build
%pyproject_wheel %pyproject_wheel