public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-pydantic] rawhide: Workaround test failures with Python 3.15.0b1+
Date: Wed, 03 Jun 2026 10:04:28 GMT	[thread overview]
Message-ID: <178048106893.1.3729522623630151096.rpms-python-pydantic-539dc9dbb7e5@fedoraproject.org> (raw)

            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
 
 

                 reply	other threads:[~2026-06-03 10:04 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=178048106893.1.3729522623630151096.rpms-python-pydantic-539dc9dbb7e5@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