Bug 2275072
| Summary: | python-beautifulsoup4 fails to build with Python 3.13: AssertionError: assert True == i.decomposed where False = <p></p>.decomposed | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karolina Surma <ksurma> |
| Component: | python-beautifulsoup4 | Assignee: | Terje Røsten <terje.rosten> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | kevin, ksurma, mhroncok, mrunge, steve.traylen, terje.rosten |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-05-09 15:57:32 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: | 2244836 | ||
python-beautifulsoup4 in python 3.13 copr seems to be green now: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-beautifulsoup4/ |
python-beautifulsoup4 fails to build with Python 3.13.0a6. =================================== FAILURES =================================== _____________________ TestTreeModification.test_decompose ______________________ self = <bs4.tests.test_tree.TestTreeModification object at 0x7f32a9a70aa0> def test_decompose(self): # Test PageElement.decompose() and PageElement.decomposed soup = self.soup("<p><a>String <em>Italicized</em></a></p><p>Another para</p>") p1, p2 = soup.find_all('p') a = p1.a text = p1.em.string for i in [p1, p2, a, text]: assert False == i.decomposed # This sets p1 and everything beneath it to decomposed. p1.decompose() for i in [p1, a, text]: > assert True == i.decomposed E assert True == False E + where False = <p></p>.decomposed bs4/tests/test_tree.py:1252: AssertionError =========================== short test summary info ============================ FAILED bs4/tests/test_tree.py::TestTreeModification::test_decompose - assert ... =================== 1 failed, 656 passed, 7 skipped in 2.13s =================== https://docs.python.org/3.13/whatsnew/3.13.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/07310633-python-beautifulsoup4/ For all our attempts to build python-beautifulsoup4 with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-beautifulsoup4/ 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.13: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ Let us know here if you have any questions. Python 3.13 is planned to be included in Fedora 41. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13. 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.