Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-ipython for openSUSE:Factory 
checked in at 2025-08-06 14:31:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ipython (Old)
 and      /work/SRC/openSUSE:Factory/.python-ipython.new.1085 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-ipython"

Wed Aug  6 14:31:15 2025 rev:55 rq:1297454 version:8.37.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ipython/python-ipython.changes    
2025-07-24 18:34:38.786611547 +0200
+++ /work/SRC/openSUSE:Factory/.python-ipython.new.1085/python-ipython.changes  
2025-08-06 14:31:37.163833487 +0200
@@ -1,0 +2,7 @@
+Mon Aug  4 09:29:55 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- Add upstream pytest-warnings.patch to fix tests with pytest 8.4+
+- tests actually use pytest-asyncio, otherwise they break even with
+  the patch
+
+-------------------------------------------------------------------
@@ -4 +11 @@
-- skip deprecation warnings
+- switch to pytest-trio

New:
----
  pytest-warnings.patch

----------(New B)----------
  New:
- Add upstream pytest-warnings.patch to fix tests with pytest 8.4+
- tests actually use pytest-asyncio, otherwise they break even with
----------(New E)----------

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

Other differences:
------------------
++++++ python-ipython.spec ++++++
--- /var/tmp/diff_new_pack.kTfxy7/_old  2025-08-06 14:31:38.319881873 +0200
+++ /var/tmp/diff_new_pack.kTfxy7/_new  2025-08-06 14:31:38.319881873 +0200
@@ -40,6 +40,8 @@
 URL:            https://github.com/ipython/ipython
 Source:         
https://files.pythonhosted.org/packages/source/i/ipython/ipython-%{version}.tar.gz
 Source1:        
https://raw.githubusercontent.com/jupyter/qtconsole/4.0.0/qtconsole/resources/icon/JupyterConsole.svg
+# PATCH-FIX-UPSTREAM 
https://github.com/ipython/ipython/commit/9dc9414beec774e0857d655299231fb8e311d9b8
 Fix a number of pytest warnings
+Patch0:         pytest-warnings.patch
 BuildRequires:  %{python_module base >= 3.10}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools >= 61.2}
@@ -89,7 +91,7 @@
 BuildRequires:  %{python_module numpy >= 1.23}
 BuildRequires:  %{python_module pandas}
 BuildRequires:  %{python_module pickleshare}
-BuildRequires:  %{python_module pytest-trio}
+BuildRequires:  %{python_module pytest-asyncio}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module testpath}
 BuildRequires:  %{python_module trio}


++++++ pytest-warnings.patch ++++++
>From 9dc9414beec774e0857d655299231fb8e311d9b8 Mon Sep 17 00:00:00 2001
From: M Bussonnier <bussonniermatth...@gmail.com>
Date: Sat, 22 Feb 2025 19:51:26 +0100
Subject: [PATCH] Fix a number of pytest warnings

---
 tests/conftest.py              | 13 -------------
 tests/test_embed.py            |  2 +-
 tests/test_interactiveshell.py |  4 +---
 tests/test_magic.py            |  5 +++++
 tests/test_run.py              |  6 +++---
 5 files changed, 10 insertions(+), 20 deletions(-)

Index: ipython-8.37.0/IPython/conftest.py
===================================================================
--- ipython-8.37.0.orig/IPython/conftest.py
+++ ipython-8.37.0/IPython/conftest.py
@@ -14,19 +14,6 @@ pytest.register_assert_rewrite("IPython.
 from .testing import tools
 
 
-def pytest_collection_modifyitems(items):
-    """This function is automatically run by pytest passing all collected test
-    functions.
-
-    We use it to add asyncio marker to all async tests and assert we don't use
-    test functions that are async generators which wouldn't make sense.
-    """
-    for item in items:
-        if inspect.iscoroutinefunction(item.obj):
-            item.add_marker("asyncio")
-        assert not inspect.isasyncgenfunction(item.obj)
-
-
 def get_ipython():
     from .terminal.interactiveshell import TerminalInteractiveShell
     if TerminalInteractiveShell._instance:
Index: ipython-8.37.0/IPython/core/tests/test_magic.py
===================================================================
--- ipython-8.37.0.orig/IPython/core/tests/test_magic.py
+++ ipython-8.37.0/IPython/core/tests/test_magic.py
@@ -1198,6 +1198,7 @@ def test_script_out_err():
     assert ip.user_ns["error"].strip() == "hello"
 
 
+@pytest.mark.asyncio
 async def test_script_bg_out():
     ip = get_ipython()
     ip.run_cell_magic("script", f"--bg --out output {sys.executable}", 
"print('hi')")
@@ -1205,6 +1206,7 @@ async def test_script_bg_out():
     assert ip.user_ns["output"].at_eof()
 
 
+@pytest.mark.asyncio
 async def test_script_bg_err():
     ip = get_ipython()
     ip.run_cell_magic(
@@ -1216,6 +1218,7 @@ async def test_script_bg_err():
     assert ip.user_ns["error"].at_eof()
 
 
+@pytest.mark.asyncio
 async def test_script_bg_out_err():
     ip = get_ipython()
     ip.run_cell_magic(
@@ -1235,6 +1238,7 @@ async def test_script_bg_out_err():
     assert ip.user_ns["error"].at_eof()
 
 
+@pytest.mark.asyncio
 async def test_script_bg_proc():
     ip = get_ipython()
     ip.run_cell_magic(
@@ -1269,6 +1273,7 @@ def test_script_defaults():
             assert cmd in ip.magics_manager.magics["cell"]
 
 
+@pytest.mark.asyncio
 async def test_script_streams_continiously(capsys):
     ip = get_ipython()
     # Windows is slow to start up a thread on CI

Reply via email to