public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pydantic] rawhide: Workaround test failures with Python 3.15.0b1+
@ 2026-06-03 10:04 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-06-03 10:04 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-pydantic
            Branch : rawhide
            Commit : 539dc9dbb7e5717324b521bc82ddbe134084a1cf
            Author : Miro Hrončok <miro@hroncok.cz>
            Date   : 2026-05-26T14:59:21+02:00
            Stats  : +12/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-pydantic/c/539dc9dbb7e5717324b521bc82ddbe134084a1cf?branch=rawhide

            Log:
            Workaround test failures with Python 3.15.0b1+

- Fixes: rhbz#2460140

---
diff --git a/python-pydantic.spec b/python-pydantic.spec
index 7bae8a3..c107e27 100644
--- a/python-pydantic.spec
+++ b/python-pydantic.spec
@@ -109,7 +109,18 @@ ignore="${ignore-} --ignore=tests/benchmarks"
 # https://github.com/pydantic/pydantic/issues/12080#issuecomment-3608739542.)
 k="${k-}${k+ and }not test_deferred_annotations_nested_model"
 
-%pytest ${ignore-} -k "${k-}" -rs
+# Python 3.15+ base64.urlsafe_b64decode() accepts unpadded input by default (padded=False),
+# so the test data is no longer invalid
+# https://github.com/python/cpython/commit/8bf8bf9292
+# Python 3.15 support tracker https://github.com/pydantic/pydantic/issues/13173
+k="${k-}${k+ and }not test_base64url_invalid"
+
+# Python 3.15+ warns:
+# test_base64url: FutureWarning: invalid character '+' in URL-safe Base64 data will be discarded in future Python versions
+# https://github.com/pydantic/pydantic/issues/12778 closed as not planed
+W="ignore:invalid character '+' in URL-safe Base64:FutureWarning"
+
+%pytest ${ignore-} -k "${k-}" -rs -W "${W}"
 %endif
 
 

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 10:04 [rpms/python-pydantic] rawhide: Workaround test failures with Python 3.15.0b1+ 

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