{"id":24425,"library":"pytest-faulthandler","title":"pytest-faulthandler","description":"pytest plugin that activates the faulthandler module during tests, enabling tracebacks for segfaults and crashes. Version 2.0.1 is a dummy package that no longer does anything because faulthandler is built into Python 3.3+. The plugin is effectively obsolete.","status":"deprecated","version":"2.0.1","language":"python","source_language":"en","source_url":"https://github.com/pytest-dev/pytest-faulthandler","tags":["pytest","testing","faulthandler","debugging","deprecated"],"install":[{"cmd":"pip install pytest-faulthandler","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The plugin is a pytest plugin; importing it directly is unnecessary and may cause errors.","wrong":"import pytest_faulthandler","symbol":"pytest_faulthandler","correct":"do not import; plugin auto-activates when installed"}],"quickstart":{"code":"# No special setup is needed; just install the package and run pytest.\n# The fault handler will be activated automatically for Python < 3.3.\n# For Python >= 3.3, faulthandler is built-in, so this plugin is a no-op.\n\n# Example: run pytest normally\n# pytest test_example.py\n","lang":"python","description":"Install and run pytest. The plugin automatically activates the fault handler."},"warnings":[{"fix":"For Python 3.3+, remove the dependency. If you need fault handler tracebacks, use PYTHONFAULTHANDLER=1 or call faulthandler.enable() in conftest.py.","message":"pytest-faulthandler is obsolete for Python 3.3+ because faulthandler is part of the standard library. The package is now a dummy that does nothing.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Remove the dependency entirely for Python >=3.3; the built-in faulthandler module handles all cases.","message":"Version 2.0.0 changed the package to a dummy that does nothing, breaking any tests that relied on the plugin's behavior (though normally it was transparent).","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Pin to Python 3.3+ or avoid using this plugin entirely.","message":"Installing pytest-faulthandler on Python < 3.3 may still attempt to install the real faulthandler package from PyPI, which is no longer maintained.","severity":"gotcha","affected_versions":"any"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Remove the dependency from requirements.txt; the built-in faulthandler module is sufficient for Python 3.3+.","cause":"Package has been deprecated and may be removed from PyPI.","error":"ERROR: Could not find a version that satisfies the requirement pytest-faulthandler (from versions: none)"},{"fix":"Upgrade Python to 3.3+ or install the backported faulthandler package manually.","cause":"Very old Python version (< 2.7) or missing faulthandler installation.","error":"AttributeError: module 'faulthandler' has no attribute 'enable'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}