Bug 2275100 - python-pint fails to build with pytest 8: TypeError: Warning must be str or Warning, got <class 'RuntimeWarning'> (type type)
Summary: python-pint fails to build with pytest 8: TypeError: Warning must be str or W...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pint
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Joel Capitao
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-15 11:59 UTC by Tomáš Hrnčiar
Modified: 2024-04-22 07:42 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-04-22 07:42:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2024-04-15 11:59:49 UTC
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.

Comment 1 Tomáš Hrnčiar 2024-04-18 10:06:15 UTC
PR: https://src.fedoraproject.org/rpms/python-pint/pull-request/12


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