Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-elasticsearch for 
openSUSE:Factory checked in at 2025-07-08 15:29:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-elasticsearch (Old)
 and      /work/SRC/openSUSE:Factory/.python-elasticsearch.new.7373 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-elasticsearch"

Tue Jul  8 15:29:02 2025 rev:22 rq:1291145 version:8.17.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-elasticsearch/python-elasticsearch.changes    
    2025-02-04 18:12:37.159751555 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-elasticsearch.new.7373/python-elasticsearch.changes
      2025-07-08 15:29:19.950979936 +0200
@@ -1,0 +2,5 @@
+Mon Jul  7 10:11:06 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Add upstream event_loop.patch to fix tests with pytest-asyncio 1.0
+
+-------------------------------------------------------------------

New:
----
  event_loop.patch

----------(New B)----------
  New:
- Add upstream event_loop.patch to fix tests with pytest-asyncio 1.0
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-elasticsearch.spec ++++++
--- /var/tmp/diff_new_pack.0FY9Lg/_old  2025-07-08 15:29:20.507003165 +0200
+++ /var/tmp/diff_new_pack.0FY9Lg/_new  2025-07-08 15:29:20.511003332 +0200
@@ -27,6 +27,8 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/elastic/elasticsearch-py
 Source:         
https://github.com/elastic/elasticsearch-py/archive/refs/tags/v%{version}.tar.gz
+# PATCH-FIX-UPSTREAM 
https://github.com/elastic/elasticsearch-py/commit/3c9680a5cf0b67a56356bf73173a7d5eabb2e552
 Stop using event_loop fixture
+Patch:          event_loop.patch
 BuildRequires:  %{python_module certifi}
 BuildRequires:  %{python_module elastic-transport}
 BuildRequires:  %{python_module hatchling}

++++++ event_loop.patch ++++++
>From 3c9680a5cf0b67a56356bf73173a7d5eabb2e552 Mon Sep 17 00:00:00 2001
From: Quentin Pradet <quentin.pra...@elastic.co>
Date: Wed, 28 May 2025 20:02:48 +0400
Subject: [PATCH] Stop using event_loop fixture (#2969)

It was removed in pytest-asyncio 1.0.
---
 docs/reference/async.md                         | 3 +--
 test_elasticsearch/test_async/test_transport.py | 6 ++++--
 2 files changed, 5 insertions(+), 4 deletions(-)

Index: elasticsearch-py-8.17.1/test_elasticsearch/test_async/test_transport.py
===================================================================
--- elasticsearch-py-8.17.1.orig/test_elasticsearch/test_async/test_transport.py
+++ elasticsearch-py-8.17.1/test_elasticsearch/test_async/test_transport.py
@@ -527,7 +527,8 @@ class TestTransport:
         assert request_failed_in_error
         assert len(client.transport.node_pool) == 3
 
-    async def test_sniff_after_n_seconds(self, event_loop):
+    async def test_sniff_after_n_seconds(self):
+        event_loop = asyncio.get_running_loop()
         client = AsyncElasticsearch(  # noqa: F821
             [NodeConfig("http", "localhost", 9200, _extras={"data": 
CLUSTER_NODES})],
             node_class=DummyNode,
@@ -581,7 +582,8 @@ class TestTransport:
             == "Sniffing should not be enabled when connecting to Elastic 
Cloud"
         )
 
-    async def test_sniff_on_start_close_unlocks_async_calls(self, event_loop):
+    async def test_sniff_on_start_close_unlocks_async_calls(self):
+        event_loop = asyncio.get_running_loop()
         client = AsyncElasticsearch(  # noqa: F821
             [
                 NodeConfig(

Reply via email to