Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911838 - dev-python/tpm2-pytss-2.1.0 fails tests (PYTHON-3.12-SYSTEM): AssertionError: unsupported key type: DSAPrivateKey != unsupported key type: _DSAPrivateKey
Summary: dev-python/tpm2-pytss-2.1.0 fails tests (PYTHON-3.12-SYSTEM): AssertionError:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Christopher Byrne
URL:
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks:
 
Reported: 2023-08-07 07:06 UTC by Agostino Sarubbo
Modified: 2023-10-01 07:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,203.30 KB, text/plain)
2023-08-07 07:06 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-08-07 07:06:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/tpm2-pytss-2.1.0 fails tests (PYTHON-3.12-SYSTEM).
Discovered on: amd64 (internal ref: python-3.12_tinderbox)

NOTE:
(PYTHON-3.12-SYSTEM) in the summary means that the bug was found on a machine that runs python-3.12 but this bug MAY or MAY NOT BE related to the new python version
Comment 1 Agostino Sarubbo gentoo-dev 2023-08-07 07:06:25 UTC
Created attachment 867271 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-08-07 07:06:26 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E       AssertionError: 'unsupported key type: DSAPrivateKey' != 'unsupported key type: _DSAPrivateKey'
FAILED test/test_crypto.py::CryptoTest::test_unsupported_key - AssertionError...
Comment 3 Christopher Byrne 2023-08-09 02:59:17 UTC
Its not related to Python 12. I can replicate this with the current stable. Something changed in dev-python/cryptography, because it works with dev-python/cryptography-40.0.2-r2, but not in  dev-python/cryptography-41.0.1 or later.
Comment 4 Larry the Git Cow gentoo-dev 2023-10-01 07:27:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed8546f3c2fde853395080fc346968f6d6019d63

commit ed8546f3c2fde853395080fc346968f6d6019d63
Author:     Christopher Byrne <salah.coronya@gmail.com>
AuthorDate: 2023-08-10 00:40:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-01 07:15:10 +0000

    dev-python/tpm2-pytss: Fix failing test, add DISTUTILS_EXT
    
    Closes: https://bugs.gentoo.org/911838
    Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...-add-check-for-renamed-cryptography-types.patch | 45 ++++++++++++++++++++++
 dev-python/tpm2-pytss/tpm2-pytss-2.1.0-r1.ebuild   | 44 +++++++++++++++++++++
 2 files changed, 89 insertions(+)