public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-tqdm] epel10: Fix tests
@ 2026-07-07 13:56 Stephen Gallagher
  0 siblings, 0 replies; only message in thread
From: Stephen Gallagher @ 2026-07-07 13:56 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-tqdm
            Branch : epel10
            Commit : 1263526aa9938245a106c9b95af2889426d4f6d8
            Author : Stephen Gallagher <sgallagh@redhat.com>
            Date   : 2026-01-29T09:44:29-05:00
            Stats  : +48/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-tqdm/c/1263526aa9938245a106c9b95af2889426d4f6d8?branch=epel10

            Log:
            Fix tests

Python 3.14 changed the format of the text string being checked for.
Add a patch to adjust the filterwarnings string to account for this
change.

Resolves: rhbz#2435032

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

---
diff --git a/0001-Adapt-filterwarnings-for-Python-3.14.patch b/0001-Adapt-filterwarnings-for-Python-3.14.patch
new file mode 100644
index 0000000..1880c39
--- /dev/null
+++ b/0001-Adapt-filterwarnings-for-Python-3.14.patch
@@ -0,0 +1,44 @@
+From 7dba1decf10e348566f79aabb7aac4f9748be014 Mon Sep 17 00:00:00 2001
+From: Stephen Gallagher <sgallagh@redhat.com>
+Date: Mon, 19 Jan 2026 15:38:10 -0500
+Subject: [PATCH] Adapt filterwarnings for Python 3.14
+
+Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
+---
+ tests/tests_pandas.py | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/tests/tests_pandas.py b/tests/tests_pandas.py
+index 09dff1ea4ec68ade3f47d565e9c807e3e71b54f6..f5ac5c0388bff5cfe8d192e3831e5c3ff7cd5349 100644
+--- a/tests/tests_pandas.py
++++ b/tests/tests_pandas.py
+@@ -116,7 +116,7 @@ def test_pandas_data_frame():
+ 
+ 
+ @mark.filterwarnings(
+-    "ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
++    "ignore:.*operated on the grouping columns.*:FutureWarning")
+ def test_pandas_groupby_apply():
+     """Test pandas.DataFrame.groupby(...).progress_apply"""
+     with closing(StringIO()) as our_file:
+@@ -170,7 +170,7 @@ def test_pandas_groupby_apply():
+ 
+ 
+ @mark.filterwarnings(
+-    "ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
++    "ignore:.*operated on the grouping columns.*:FutureWarning")
+ def test_pandas_leave():
+     """Test pandas with `leave=True`"""
+     with closing(StringIO()) as our_file:
+@@ -206,7 +206,7 @@ def test_pandas_apply_args_deprecation():
+ 
+ 
+ @mark.filterwarnings(
+-    "ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
++    "ignore:.*operated on the grouping columns.*:FutureWarning")
+ def test_pandas_deprecation():
+     """Test bar object instance as argument deprecation"""
+     try:
+-- 
+2.52.0
+

diff --git a/python-tqdm.spec b/python-tqdm.spec
index e051d19..5455d98 100644
--- a/python-tqdm.spec
+++ b/python-tqdm.spec
@@ -17,6 +17,10 @@ Source0:        %{pypi_source}
 
 # Patches
 
+# Submitted upstream at
+# https://github.com/tqdm/tqdm/pull/1700
+Patch: 0001-Adapt-filterwarnings-for-Python-3.14.patch
+
 BuildArch:      noarch
 
 BuildRequires:  python3-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-07 13:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 13:56 [rpms/python-tqdm] epel10: Fix tests Stephen Gallagher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox