Bug 2275100
| Summary: | python-pint fails to build with pytest 8: TypeError: Warning must be str or Warning, got <class 'RuntimeWarning'> (type type) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
| Component: | python-pint | Assignee: | Joel Capitao <jcapitao> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jcapitao, lzachar, mhroncok, mrunge, python-packagers-sig, thrnciar |
| 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-04-22 07:42:16 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: | 2256331 | ||
python-pint fails to build with pytest 8. =================================== FAILURES =================================== _______________ TestQuantityToCompact.test_nonnumeric_magnitudes _______________ self = <pint.testsuite.test_quantity.TestQuantityToCompact object at 0x7f2082fda7b0> def test_nonnumeric_magnitudes(self): ureg = self.ureg x = "some string" * ureg.m > with pytest.warns(RuntimeWarning): E TypeError: Warning must be str or Warning, got <class 'RuntimeWarning'> (type type) pint/testsuite/test_quantity.py:756: TypeError https://docs.pytest.org/en/stable/changelog.html For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07248539-python-pint/ For all our attempts to build python-pint with pytest 8, see: https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-pint/ Let us know here if you have any questions. Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a heads up before we merge new pytest into rawhide. For more info see a Fedora Change proposal https://fedoraproject.org/wiki/Changes/Pytest_8 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.