Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.

pytest --faulthandler-timeout does not work with pytest 5.0.0 #35

Closed
pablogsal opened this issue Jul 1, 2019 · 4 comments
Closed

pytest --faulthandler-timeout does not work with pytest 5.0.0 #35

pablogsal opened this issue Jul 1, 2019 · 4 comments
Labels

Comments

@pablogsal
Copy link

pablogsal commented Jul 1, 2019

After pytest-faulthandler was integrated into the core of pytest 5.0.0 only the ini-option faulthandler_timeout is available, but this shadows the usage of faulthandler-timeout:

❯ python -m pytest --faulthandler_timeout=10
/Users/pgalindo3/.local/share/virtualenvs/venv-TdjqqweH/lib/python3.7/site-packages/_pytest/config/__init__.py:297: PytestConfigWarning: pytest-faulthandler plugin has been merged into the core, please remove it from your requirements.
  name.replace("_", "-")
ERROR: usage: pytest.py [options] [file_or_dir] [file_or_dir] [...]
pytest.py: error: unrecognized arguments: --faulthandler_timeout=10
  inifile: /Users/pgalindo/github/venv/tox.ini
  rootdir: /Users/pgalindo/github/venv

If this should be an issue on https://github.com/pytest-dev/pytest I can close this and reopen one ther e :)

@nicoddemus
Copy link
Member

Can you please show the full output? You should have been seeing a warning about pytest-faulthandler being merged into the core...

@pablogsal
Copy link
Author

pablogsal commented Jul 1, 2019

I will paste here the output but in any case one of the problems is that is not possible to configure the option with a command line argument in pytest core now (only the ini file option is allowed).

@nicoddemus
Copy link
Member

Oh I see. You can configure the ini option from the command-line using the -o option:

$ pytest -o faulthandler_timeout=10

@nicoddemus
Copy link
Member

Closing for now, feel free to follow up with further questions. 👍

@nicoddemus nicoddemus pinned this issue Jul 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants