Skip to content

Fix compatibility with pytest >= 9.1#1054

Open
hrnciar wants to merge 1 commit into
pydantic:mainfrom
hrnciar:patch-1
Open

Fix compatibility with pytest >= 9.1#1054
hrnciar wants to merge 1 commit into
pydantic:mainfrom
hrnciar:patch-1

Conversation

@hrnciar

@hrnciar hrnciar commented Jul 6, 2026

Copy link
Copy Markdown

Summary

pytest 9.1.0 (gh#pytest-dev/pytest#3697) now captures log records from non-propagating loggers, causing uvicorn.access records to appear in caplog.record_tuples. Filter to only httpx2 records in assertions.

Assisted-by: Claude Opus 4.6

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@codspeed-hq

codspeed-hq Bot commented Jul 6, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 15 untouched benchmarks
⏩ 7 skipped benchmarks1


Comparing hrnciar:patch-1 (c1f50ac) with main (70fac53)

Open in CodSpeed

Footnotes

  1. 7 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

pytest 9.1.0 (gh#pytest-dev/pytest#3697) now captures log records from non-propagating loggers, causing uvicorn.access records to appear in caplog.record_tuples. Filter to only httpx2 records in assertions.

Assisted-by: Claude Opus 4.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant