Skip to content

Pytest hangs when using faulthandler_timeout with pytest-forked #49

@tykurtz

Description

@tykurtz

Steps to reproduce

Create two files in root workspace

# foo.py
def test_bar():
    fjaoisjdfoiajsdofi
# pyproject.toml
[tool.pytest.ini_options]
faulthandler_timeout=1800

Create a minimal venv with pytest-forked

mkvirtualenv foo --python 3.7
pip install pytest-forked==1.3.0

Run the following,

pytest foo.py --forked

pytest should hang indefinitely during collection

=========================================================================================== test session starts ============================================================================================
platform linux -- Python 3.7.5, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/tyler/playground/pytest-forked-repro, configfile: pyproject.toml
plugins: forked-1.3.0
collected 1 item                                                                                                                                                                                           

foo.py 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions