-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Codex/assertion text diff blocks #14425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nicoddemus
merged 22 commits into
pytest-dev:main
from
hamza-mobeen:codex/assertion-text-diff-blocks
May 18, 2026
Merged
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
e720397
Add datetime/timedelta support to pytest.approx (#8395)
hamza-mobeen 5a2a014
Add block text diffs
hamza-mobeen 2a40e38
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ef90179
Fix pre-commit lint and mypy errors
hamza-mobeen b9e20c4
Merge branch 'main' into codex/assertion-text-diff-blocks
hamza-mobeen 499aaa9
Add test to cover getini KeyError in mock_config
hamza-mobeen e5f209e
Merge main
hamza-mobeen 84dc2f4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4529bf4
Merge branch 'main' into codex/assertion-text-diff-blocks
hamza-mobeen d093267
Merge branch 'main' into codex/assertion-text-diff-blocks
hamza-mobeen c1d79c6
Update doc/en/how-to/output.rst
hamza-mobeen 588e1a4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 1fe4671
Update src/_pytest/assertion/util.py
hamza-mobeen 68564ae
Update doc/en/reference/reference.rst
hamza-mobeen 6ab0d7d
Update doc/en/reference/reference.rst
hamza-mobeen b9d11e8
Address assertion text diff style review
hamza-mobeen f9bf927
Merge branch 'main' into codex/assertion-text-diff-blocks
hamza-mobeen 0eafb5f
Cover ndiff assertion text diff style
hamza-mobeen 4e11a6b
Apply suggestions from code review
nicoddemus c051132
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4cc27d7
Update util.py
nicoddemus 8a69623
Apply suggestion from @nicoddemus
nicoddemus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Added the :confval:`assertion_text_diff_style` configuration option, allowing | ||
| string equality failures to be rendered as separate ``Left:`` and ``Right:`` | ||
| blocks instead of ``ndiff`` output. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.