17
0

4 Commits

Author SHA256 Message Date
8ef4e30ca6 Accepting request 1292329 from devel:languages:python
- update to 1.5.0:
  * package: include the requirements and tests in the sdist
    package
- update to 1.4.3:
  * Drop travis in favor of gh actions
  * Drop `nosetest`
  * Add `DepracationWarning` for "old-python" tests

  * declare python 3.9+ as supported

OBS-URL: https://build.opensuse.org/request/show/1292329
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aiounittest?expand=0&rev=6
2025-07-15 14:42:55 +00:00
75c0a24cd1 - update to 1.5.0:
* package: include the requirements and tests in the sdist
    package
- update to 1.4.3:
  * Drop travis in favor of gh actions
  * Drop `nosetest`
  * Add `DepracationWarning` for "old-python" tests
  * declare python 3.9+ as supported

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiounittest?expand=0&rev=10
2025-07-12 11:42:58 +00:00
b82f4e725a Accepting request 1277068 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277068
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aiounittest?expand=0&rev=5
2025-05-23 12:27:08 +00:00
4a94d03efd Accepting request 1277045 from home:mcalabkova:branches:devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1277045
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiounittest?expand=0&rev=8
2025-05-13 08:53:47 +00:00
3 changed files with 3 additions and 46 deletions

View File

@@ -1,37 +0,0 @@
From 603ca4f57ee2f580d59066600e0ca886efcf8700 Mon Sep 17 00:00:00 2001
From: Karolina Surma <ksurma@redhat.com>
Date: Wed, 28 May 2025 10:59:13 +0200
Subject: [PATCH] asyncio.get_event_loop() doesn't create a new loop since
Python 3.14
---
aiounittest/case.py | 2 +-
tests/test_asynctestcase_get_event_loop.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/aiounittest/case.py b/aiounittest/case.py
index d4e302b..441eed0 100644
--- a/aiounittest/case.py
+++ b/aiounittest/case.py
@@ -70,7 +70,7 @@ def get_event_loop(self):
class MyTest(aiounittest.AsyncTestCase):
def get_event_loop(self):
- self.my_loop = asyncio.get_event_loop()
+ self.my_loop = asyncio.new_event_loop()
return self.my_loop
diff --git a/tests/test_asynctestcase_get_event_loop.py b/tests/test_asynctestcase_get_event_loop.py
index 91736ef..5d5de9c 100644
--- a/tests/test_asynctestcase_get_event_loop.py
+++ b/tests/test_asynctestcase_get_event_loop.py
@@ -27,7 +27,7 @@ async def async_nested_exc():
class TestAsyncCaseWithCustomLoop(aiounittest.AsyncTestCase):
def get_event_loop(self):
- self.my_loop = asyncio.get_event_loop()
+ self.my_loop = asyncio.new_event_loop()
return self.my_loop
async def test_await_async_add(self):

View File

@@ -1,8 +1,3 @@
-------------------------------------------------------------------
Mon Sep 8 12:22:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add py314-wip.patch to fix build with Python 3.14
-------------------------------------------------------------------
Sat Jul 12 11:42:38 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-aiounittest
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2019 Matthias Fehring <buschmann23@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
@@ -17,6 +17,7 @@
#
%define skip_python2 1
Name: python-aiounittest
Version: 1.5.0
Release: 0
@@ -25,8 +26,6 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/kwarunek/aiounittest
Source: https://github.com/kwarunek/aiounittest/archive/%{version}.tar.gz#/aiounittest-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/kwarunek/aiounittest/pull/29 asyncio.get_event_loop() doesn't create a new loop since Python 3.14
Patch0: py314-wip.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -47,7 +46,7 @@ test of the asynchronous code (asyncio). You can test:
asyncio.coroutine/yield from (Python 3.4)
%prep
%autosetup -p1 -n aiounittest-%{version}
%setup -q -n aiounittest-%{version}
%build
%pyproject_wheel