Registry / testing / pytest-faulthandler

pytest-faulthandler

JSON →
library2.0.1pypypiunverified

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.

pip install pytest-faulthandler
INSTALL
IMPORT
SIG · PYTEST-FAULTHANDLE
P
pytest-faulthandler
testingpythonv2.0.1
Install
2.7s avg
Import
Disk
29MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 30.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 31MB
29MB installed
● package 29MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest_faulthandler
do not import; plugin auto-activates when installed
import pytest_faulthandler
The plugin is a pytest plugin; importing it directly is unnecessary and may cause errors.

Install and run pytest. The plugin automatically activates the fault handler.

# No special setup is needed; just install the package and run pytest. # The fault handler will be activated automatically for Python < 3.3. # For Python >= 3.3, faulthandler is built-in, so this plugin is a no-op. # Example: run pytest normally # pytest test_example.py
Debug
Known issues
deprecatedpytest-faulthandler is obsolete for Python 3.3+ because faulthandler is part of the standard library. The package is now a dummy that does nothing.
fix
For Python 3.3+, remove the dependency. If you need fault handler tracebacks, use PYTHONFAULTHANDLER=1 or call faulthandler.enable() in conftest.py.
affects: >=2.0.0
breakingVersion 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).
fix
Remove the dependency entirely for Python >=3.3; the built-in faulthandler module handles all cases.
affects: >=2.0.0
gotchaInstalling pytest-faulthandler on Python < 3.3 may still attempt to install the real faulthandler package from PyPI, which is no longer maintained.
fix
Pin to Python 3.3+ or avoid using this plugin entirely.
affects: any
Upgrade
Version history
2.0.1latest on PyPI · released Jul 4, 2019
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Bingbot
1
Resources
pytest-faulthandler — pip install pytest-faulthandler · libregistry