feat(test): Upgrade pytest to version 9.x - #745
Merged
Conversation
Upgraded pytest from <8.5 to <9.1 to adopt the latest testing framework features and improvements. Changes: - Updated pytest requirement from <8.5 to <9.1 - Updated pytest-asyncio to >=1.3.0 for pytest 9 compatibility Testing: - All 31 tests pass successfully - No pytest-specific deprecation warnings detected - Verified compatibility with existing test suite including: - Tornado AsyncHTTPTestCase tests - pytest-asyncio async tests - pytest fixtures The upgrade is safe and backward-compatible with our current test patterns. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Test Results31 tests 31 ✅ 8s ⏱️ Results for commit 00f56e9. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Motivation
pytest 9.0 was released on November 5, 2025, bringing improvements and bug fixes. This upgrade ensures we stay current with the testing framework and avoid future compatibility issues.
Key Changes
Breaking Changes Analysis
After thorough analysis, none of the pytest 9.0 breaking changes affect our codebase:
@gen_testdecorated tests use Tornado's gen-based coroutines (valid)Testing Results
Note: The 733 warnings are all from SQLAlchemy (unrelated to pytest upgrade)
Test Plan
References
🤖 Generated with Claude Code