Bug 2365819
| Summary: | lasso fails to build with Python 3.14: FAIL: binding_tests.py | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | lasso | Assignee: | Xavier Bachelot <xavier> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ksurma, mhroncok, rcritten, xavier |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | lasso-2.8.2-17.fc43 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-05-14 14:54:13 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2322407 | ||
|
Description
Karolina Surma
2025-05-13 08:40:20 UTC
I'd like to try and replicate this but ss there a convenient way to build against python 3.14 beta 1 ? Maybe a side tag ? Sorry for the noise, I failed to read properly ;-( There are no instructions at https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/ but there are at https://copr.fedorainfracloud.org/coprs/g/python/python3.14/ so I was able to sort this out. Now let's see if I can help with a fix. From /build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/test-suite.log:
```
FAIL: test07 (__main__.BindingTestCase.test07)
Check reference counting
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builddir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/./binding_tests.py", line 260, in test07
self.assertEqual(b, a-1)
~~~~~~~~~~~~~~~~^^^^^^^^
AssertionError: 1 != 2
```
The path for the test suite log above is wrong, it should read /buildir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/test-suite.log
The failing test from /builddir/build/BUILD/lasso-2.8.2-build/lasso-2.8.2/bindings/python/tests/binding_tests.py is
```
def test07(self):
'''Check reference counting'''
s = lasso.Samlp2AuthnRequest()
cptr = s._cptr
a = sys.getrefcount(s._cptr)
del(s)
b = sys.getrefcount(cptr)
self.assertEqual(b, a-1)
```
upstream issue: https://dev.entrouvert.org/issues/105622 FEDORA-2025-1bc39c03d8 (lasso-2.8.2-17.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2025-1bc39c03d8 upstream fix: https://git.entrouvert.org/entrouvert/lasso/pulls/29 downstream commit: https://src.fedoraproject.org/rpms/lasso/raw/5241e53a32c829c7bfbaa214c92d45403fde500c FEDORA-2025-1bc39c03d8 (lasso-2.8.2-17.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report. Bodhi automatically closed this bug, although the rawhide build is not using python 3.14, so re-opening in order to be able to close once the python 3.14 build has actually happened. (In reply to Xavier Bachelot from comment #2) > Sorry for the noise, I failed to read properly ;-( > There are no instructions at > https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/ but there > are at https://copr.fedorainfracloud.org/coprs/g/python/python3.14/ so I was > able to sort this out. Apologies for that and thank you for pointing this out - I added the instructions and updated template. Feel free to close the bug though: lasso has built successfully in Python 3.14 copr (https://copr.fedorainfracloud.org/coprs/g/python/python3.14-b1/build/9038285/) so I expect a success later in Koji (the rebuild is planned for the week around ~Jun 2nd). Thanks for the update Karolina ! |