pytest-icdiff
use icdiff for better error messages in pytest assertions
Decision gist · record as of 2026-08-14
Yes, if you run pytest regularly and want clearer assertion diffs. Installation is frictionless, the license is unrestricted, and there are no security concerns. The dormant maintenance status is a minor consideration—the plugin is stable and unlikely to need updates unless pytest itself changes its assertion internals—but monitor compatibility if you upgrade pytest to versions well beyond 2024.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with three lightweight runtime dependencies (pytest, icdiff, pprintpp).
- Maintenance is dormant—last release was 2023-12-05 and no commits since 2024-09-04—but the repository is not archived and the plugin remains compatible with current Python versions (3.7–3.11).
License · maintenance · safety
Unlicense (permissive) — Distributed under the Unlicense (public domain), so there are no licensing restrictions on use, modification, or distribution.
last release 2023-12-05 (983 days) · last repo commit 2024-09-04 · 330 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 9,655,067 downloads/mo, #1,512 on PyPI
Alternatives
Verify before relying
pip install pytest-icdiff
# Then run pytest normally; the plugin activates automatically
pytest test_file.py- Whether the plugin works correctly with pytest versions released after 2024-09-04.
- Performance impact on test suites with many assertion failures.
What it is and what it does
pytest-icdiff is a pytest plugin that hooks into assertion failures and replaces pytest's default diff output with ICDiff's colored, side-by-side comparison format. When an `assert ==` fails, instead of seeing a linear diff, you get a structured, color-coded view that makes it easier to spot differences at a glance, especially for complex data structures or multi-line strings.
The plugin requires pytest, icdiff, and pprintpp as runtime dependencies and installs with low friction. It activates automatically once installed—no configuration needed. Maintenance is dormant (no updates since late 2023), but the codebase is stable and compatible with Python 3.7 through 3.11. There are no known security vulnerabilities.
Use it for
- Debugging test failures involving complex nested data structures where visual clarity matters.
- Comparing multi-line strings or formatted output in assertion failures.
- Making test output more readable in CI/CD logs where color-coded diffs are easier to scan.
- Improving developer experience during local test runs with better visual feedback on assertion mismatches.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you run pytest regularly and want clearer assertion diffs.
Installation is frictionless, the license is unrestricted, and there are no security concerns. The dormant maintenance status is a minor consideration—the plugin is stable and unlikely to need updates unless pytest itself changes its assertion internals—but monitor compatibility if you upgrade pytest to versions well beyond 2024.
Install
pytest-icdiff on PyPI
Before you install
Low friction install with three lightweight runtime dependencies (pytest, icdiff, pprintpp). Maintenance is dormant—last release was 2023-12-05 and no commits since 2024-09-04—but the repository is not archived and the plugin remains compatible with current Python versions (3.7–3.11).
License in practice
Distributed under the Unlicense (public domain), so there are no licensing restrictions on use, modification, or distribution.
Quickstart
pip install pytest-icdiff
# Then run pytest normally; the plugin activates automatically
pytest test_file.py
Verify before relying
- Whether the plugin works correctly with pytest versions released after 2024-09-04.
- Performance impact on test suites with many assertion failures.
Package facts
| License | Unlicense permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespytesticdiffpprintpp |
| Maintenance | Dormant 983 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 9,655,067 / month, #1,512 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: PytestIntended Audience :: DevelopersLicense :: Public DomainOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Testing |
Evidence: pytest_icdiff-0.9-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “better pytest error messages”
- pytest-icdiffA pytest plugin that replaces default assertion diff output with…
- ipytestRuns pytest test suites directly in Jupyter notebooks with full…
- better-exceptionsFormats Python exceptions with syntax highlighting and local variable…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-clarity · pytest-rich · icdiff · ydiff · pytest-logging · datadiff · pytest-snapshot · pytest-error-for-skips · pytest-find-dependencies · pytest-xvfb