public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-google-api-core] rawhide: Fix pytest 9 compatibility
Date: Wed, 03 Jun 2026 09:57:26 GMT	[thread overview]
Message-ID: <178048064688.1.15497723447712010748.rpms-python-google-api-core-67313a8eccc5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-google-api-core
            Branch : rawhide
            Commit : 67313a8eccc50395a89f1fd26f6c30a15070861a
            Author : Tomáš Hrnčiar <thrnciar@redhat.com>
            Date   : 2026-04-02T08:43:01+02:00
            Stats  : +4/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-google-api-core/c/67313a8eccc50395a89f1fd26f6c30a15070861a?branch=rawhide

            Log:
            Fix pytest 9 compatibility

pytest 9 now reads [tool.pytest] from pyproject.toml (previously only
[tool.pytest.ini_options] was recognized). This activates
filterwarnings = ["error"], turning the credentials_file
DeprecationWarning into a test error. Add a -W ignore filter.

Assisted-by: Cursor

---
diff --git a/python-google-api-core.spec b/python-google-api-core.spec
index 3635719..4dac6ba 100644
--- a/python-google-api-core.spec
+++ b/python-google-api-core.spec
@@ -130,6 +130,10 @@ k="${k-}${k+ and }not test_metadata"
 # package.
 warningsfilter="${warningsfilter-} -W ignore:datetime:DeprecationWarning"
 warningsfilter="${warningsfilter-} -W ignore:Call:DeprecationWarning"
+# credentials_file deprecation warning is now raised as error because pytest 9
+# reads [tool.pytest] filterwarnings = ["error"] from pyproject.toml
+tomcli set pyproject.toml append tool.pytest.filterwarnings \
+    "ignore:.*credentials_file.*:DeprecationWarning"
 
 %pytest ${warningsfilter-} -k "${k-}" tests
 %endif

                 reply	other threads:[~2026-06-03  9:57 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=178048064688.1.15497723447712010748.rpms-python-google-api-core-67313a8eccc5@fedoraproject.org \
    --to=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