public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-google-api-core] rawhide: Fix pytest 9 compatibility
@ 2026-06-03  9:57 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-03  9:57 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-06-03  9:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03  9:57 [rpms/python-google-api-core] rawhide: Fix pytest 9 compatibility 

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