Registry / testing / pytest-warnings

pytest-warnings

JSON →
library0.3.1pypypiunverified

A pytest plugin that lists Python warnings in the pytest report. Version 0.3.1. Low release cadence, last updated in 2020.

pip install pytest-warnings
INSTALL
IMPORT
SIG · PYTEST-WARNINGS
P
pytest-warnings
testingpythonv0.3.1
Install
2.7s avg
Import
—
Disk
29MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.3.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.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 30.7MB
glibc
py 3.10–3.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-warnings
✓ pytest_plugins = ['pytest_warnings']
✗ import pytest_warnings
This is a pytest plugin, not a direct import. It is automatically loaded when installed, or can be explicitly declared in conftest.py.

Enable the plugin in conftest.py to include warnings in the pytest report.

# conftest.py pytest_plugins = ['pytest_warnings'] # Then run pytest normally; warnings will appear in the report summary.
Debug
Known issues
deprecatedpytest-warnings is largely superseded by built-in '-W' flag and pytest's native warning capture. Consider using native pytest features.
fix
Use `pytest -W error::UserWarning` or configure `filterwarnings` in pytest.ini.
affects: all
gotchaThe plugin is imported via 'pytest_warnings' (underscore) but installed as 'pytest-warnings' (hyphen).
fix
Use underscore in conftest.py: `pytest_plugins = ['pytest_warnings']`.
affects: all
Upgrade
Version history
0.3.1latest on PyPI · released Sep 29, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Resources
pytest-warnings — pip install pytest-warnings · libregistry