Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytest hangs when using faulthandler_timeout with pytest-forked #49

Open
tykurtz opened this issue Feb 10, 2021 · 1 comment
Open

Pytest hangs when using faulthandler_timeout with pytest-forked #49

tykurtz opened this issue Feb 10, 2021 · 1 comment
Labels

Comments

@tykurtz
Copy link

tykurtz commented Feb 10, 2021

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 
@webknjaz
Copy link
Member

Hey @tykurtz, thanks for reporting this! The plugin is not actively maintained so it's unlikely that anybody will start debugging this anytime soon. But if you're able to come up with a test that catches this, and a bugfix on top of that, feel free to send a PR and I'll try to find some time to review+merge that.

@webknjaz webknjaz added the bug label Feb 10, 2021
auscompgeek added a commit to thedropbears/pycubehammer that referenced this issue Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants