Bug 278788 - devel/py-flaky: cannot import name 'call_runtest_hook' from '_pytest.runner'
Summary: devel/py-flaky: cannot import name 'call_runtest_hook' from '_pytest.runner'
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kai Knoblich
URL: https://github.com/pytest-dev/pytest/...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-05 15:00 UTC by Thierry Thomas
Modified: 2024-05-05 20:44 UTC (History)
2 users (show)

See Also:
kai: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Thomas freebsd_committer freebsd_triage 2024-05-05 15:00:16 UTC
Running `make test' on the port math/py-cypari2 produces this error:

File "/usr/local/lib/python3.9/site-packages/flaky/flaky_pytest_plugin.py", line 5, in <module>
    from _pytest.runner import call_runtest_hook  # pylint:disable=import-error
ImportError: cannot import name 'call_runtest_hook' from '_pytest.runner' (/usr/local/lib/python3.9/site-packages/_pytest/runner.py)

This is a known bug, and it has been fixed in flaky 3.8.1: see
<https://github.com/pytest-dev/pytest/issues/12066>.

Could you please upgrade this port?
Comment 1 Kai Knoblich freebsd_committer freebsd_triage 2024-05-05 20:39:28 UTC
(In reply to Thierry Thomas from comment #0)

Hi Thierry,

thanks for the report.  Could it be that something has overlapped here?  The port devel/py-flaky has already been updated to version 3.8.1 via ports 1d2cee2e61eb.


I've also run the test suite of math/py-cypari2 on FreeBSD 13.2-RELEASE amd64 with Python 3.9, which reports no issues so far:

> == test session starts ==
> platform freebsd13 -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0
> rootdir: /wrkdirs/usr/ports/math/py-cypari2/work-py39/cypari2-2.1.5
> configfile: pyproject.toml
> plugins: flaky-3.8.1
> collected 6 items
> 
> tests/test_backward.py ... [ 50%]
> tests/test_integers.py ... [100%]
> 
> == 6 passed in 0.20s ==
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2024-05-05 20:44:02 UTC
Oh, sorry, for some reason it has not been upgraded on my work-station!