public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Stephen Gallagher <sgallagh@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-tqdm] epel10: Fix tests
Date: Tue, 07 Jul 2026 13:56:31 GMT	[thread overview]
Message-ID: <178343259131.1.10967595785319113794.rpms-python-tqdm-1263526aa993@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-07-07 13:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178343259131.1.10967595785319113794.rpms-python-tqdm-1263526aa993@fedoraproject.org \
    --to=sgallagh@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox