Bug 2424579 - python-fido2 fails to build with Python 3.15: tests failures: AssertionError: 'TYPE.CREATE' != 'webauthn.create' and more
Summary: python-fido2 fails to build with Python 3.15: tests failures: AssertionError:...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fido2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2025-12-23 12:28 UTC by Karolina Surma
Modified: 2026-03-11 03:27 UTC (History)
3 users (show)

Fixed In Version: python-fido2-2.1.1-2.fc45
Clone Of:
Environment:
Last Closed: 2026-03-11 03:27:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github Yubico python-fido2 issues 278 0 None open Fails to build with Python 3.15 2026-03-03 05:20:12 UTC

Description Karolina Surma 2025-12-23 12:28:47 UTC
python-fido2 fails to build with Python 3.15.0a3.

======================================================================
FAIL: test_make_credential_ctap1 (tests.test_client.TestFido2Client.test_make_credential_ctap1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-fido2-2.0.0-build/python-fido2-2.0.0/tests/test_client.py", line 195, in test_make_credential_ctap1
    self.assertEqual(client_data.type, "webauthn.create")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'TYPE.CREATE' != 'webauthn.create'
- TYPE.CREATE
+ webauthn.create


======================================================================
FAIL: test_authenticate_complete_invalid_signature (tests.test_server.TestFido2Server.test_authenticate_complete_invalid_signature)
----------------------------------------------------------------------
ValueError: Incorrect type in CollectedClientData.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/python-fido2-2.0.0-build/python-fido2-2.0.0/tests/test_server.py", line 84, in test_authenticate_complete_invalid_signature
    with self.assertRaisesRegex(ValueError, "Invalid signature."):
         ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "Invalid signature." does not match "Incorrect type in CollectedClientData."

======================================================================
FAIL: test_creation_options (tests.test_webauthn.TestWebAuthnDataTypes.test_creation_options)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-fido2-2.0.0-build/python-fido2-2.0.0/tests/test_webauthn.py", line 280, in test_creation_options
    self.assertEqual(o, o2)
    ~~~~~~~~~~~~~~~~^^^^^^^
AssertionError: Publi[265 chars]type=<PublicKeyCredentialType.PUBLIC_KEY: 'pub[583 chars]None) != Publi[265 chars]type=None, alg=-7)], timeout=10000, exclude_cr[357 chars]None)

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09940738-python-fido2/

For all our attempts to build python-fido2 with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-fido2/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Orion Poplawski 2026-03-03 05:20:12 UTC
Filed upstream

Comment 2 Fedora Update System 2026-03-11 03:23:12 UTC
FEDORA-2026-fcc37904c4 (python-fido2-2.1.1-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-fcc37904c4

Comment 3 Fedora Update System 2026-03-11 03:27:48 UTC
FEDORA-2026-fcc37904c4 (python-fido2-2.1.1-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.