Skip to content

Bump pytest from 8.4.2 to 9.0.2#310

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/pytest-9.0.2
Closed

Bump pytest from 8.4.2 to 9.0.2#310
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/pytest-9.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jan 5, 2026

Bumps pytest from 8.4.2 to 9.0.2.

Release notes

Sourced from pytest's releases.

9.0.2

pytest 9.0.2 (2025-12-06)

Bug fixes

  • #13896: The terminal progress feature added in pytest 9.0.0 has been disabled by default, except on Windows, due to compatibility issues with some terminal emulators.

    You may enable it again by passing -p terminalprogress. We may enable it by default again once compatibility improves in the future.

    Additionally, when the environment variable TERM is dumb, the escape codes are no longer emitted, even if the plugin is enabled.

  • #13904: Fixed the TOML type of the tmp_path_retention_count settings in the API reference from number to string.

  • #13946: The private config.inicfg attribute was changed in a breaking manner in pytest 9.0.0. Due to its usage in the ecosystem, it is now restored to working order using a compatibility shim. It will be deprecated in pytest 9.1 and removed in pytest 10.

  • #13965: Fixed quadratic-time behavior when handling unittest subtests in Python 3.10.

Improved documentation

  • #4492: The API Reference now contains cross-reference-able documentation of pytest's command-line flags <command-line-flags>.

9.0.1

pytest 9.0.1 (2025-11-12)

Bug fixes

  • #13895: Restore support for skipping tests via raise unittest.SkipTest.
  • #13896: The terminal progress plugin added in pytest 9.0 is now automatically disabled when iTerm2 is detected, it generated desktop notifications instead of the desired functionality.
  • #13904: Fixed the TOML type of the verbosity settings in the API reference from number to string.
  • #13910: Fixed UserWarning: Do not expect file_or_dir on some earlier Python 3.12 and 3.13 point versions.

Packaging updates and notes for downstreams

  • #13933: The tox configuration has been adjusted to make sure the desired version string can be passed into its package_env through the SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST environment variable as a part of the release process -- by webknjaz.

Contributor-facing changes

  • #13891, #13942: The CI/CD part of the release automation is now capable of creating GitHub Releases without having a Git checkout on disk -- by bluetech and webknjaz.
  • #13933: The tox configuration has been adjusted to make sure the desired version string can be passed into its package_env through the SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST environment variable as a part of the release process -- by webknjaz.

... (truncated)

Commits
  • 3d10b51 Prepare release version 9.0.2
  • 188750b Merge pull request #14030 from pytest-dev/patchback/backports/9.0.x/1e4b01d1f...
  • b7d7bef Merge pull request #14014 from bluetech/compat-note
  • bd08e85 Merge pull request #14013 from pytest-dev/patchback/backports/9.0.x/922b60377...
  • bc78386 Add CLI options reference documentation (#13930)
  • 5a4e398 Fix docs typo (#14005) (#14008)
  • d7ae6df Merge pull request #14006 from pytest-dev/maintenance/update-plugin-list-tmpl...
  • 556f6a2 pre-commit: fix rst-lint after new release (#13999) (#14001)
  • c60fbe6 Fix quadratic-time behavior when handling unittest subtests in Python 3.10 ...
  • 73d9b01 Merge pull request #13995 from nicoddemus/patchback/backports/9.0.x/1b5200c0f...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python python programming languagae labels Jan 5, 2026
@dependabot dependabot Bot requested a review from a team as a code owner January 5, 2026 22:13
@dependabot dependabot Bot added python python programming languagae dependencies Pull requests that update a dependency file labels Jan 5, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 5, 2026

🤖 Claude Code Review

Automated Code Review Results

Pull Request Analysis

This PR updates the pytest dependency from version 8.4.2 to 9.0.2 in the pyproject.toml file.


Code Quality

✅ Code follows style guide

  • The changes follow standard TOML formatting conventions
  • Version pinning format is consistent with project standards
  • No style violations detected

✅ No commented-out code

  • No commented code present in the diff

✅ Meaningful variable names

  • N/A for dependency updates

✅ DRY principle followed

  • The version is updated in both locations where pytest is declared (development and test dependency groups)
  • This is appropriate for TOML dependency specifications

✅ No defects identified

  • This is a straightforward dependency version update
  • Both instances of pytest version have been updated consistently (lines 51 and 90 in pyproject.toml)
  • No logic errors, edge cases, or security vulnerabilities introduced

Testing

⚠️ Unit tests for new functions

  • N/A - This is a dependency update, not a functional change
  • Recommendation: Verify that existing tests still pass with pytest 9.0.2 (this is a major version bump from 8.x to 9.x)

⚠️ Integration tests for new endpoints

  • N/A - No new endpoints added

⚠️ Edge cases covered

  • N/A for dependency update

⚠️ Test coverage > 80%

  • Cannot assess from this diff alone
  • Recommendation: Run test suite to ensure pytest 9.0.2 doesn't break existing tests or coverage reporting

Documentation

❌ CHANGELOG.md updated

  • Issue: No CHANGELOG.md update visible in this diff
  • Required Action: Document the pytest version bump from 8.4.2 to 9.0.2 in CHANGELOG.md
  • This is a major version update and should be noted for consumers of this package

✅ Readme updated if needed

  • No README update needed for internal dependency changes

✅ API docs updated

  • N/A - No API changes

✅ Inline comments for complex logic

  • N/A - Dependency declaration doesn't require comments

⚠️ Markdown files formatting

  • Cannot assess - no markdown files modified in this diff

Security

✅ No hardcoded credentials

  • No credentials present

✅ Input validation implemented

  • N/A for dependency update

✅ Proper error handling

  • N/A for dependency update

✅ No sensitive data in logs

  • N/A for dependency update

✅ No license files checked in

  • No .lic files or AQAAAD strings detected

Summary & Recommendations

Overall Assessment: ✅ APPROVED with minor documentation requirement

Critical Items:

  • None

Required Before Merge:

  1. Update CHANGELOG.md to document the pytest upgrade from 8.4.2 to 9.0.2

Recommended Actions:

  1. Test Compatibility: Since this is a major version bump (pytest 8.x → 9.x), ensure all existing tests pass
  2. Review Breaking Changes: Check pytest 9.0.2 release notes for any breaking changes that might affect this project
  3. Verify CI/CD: Ensure continuous integration passes with the new pytest version

Files Affected:

  • pyproject.toml:51 - Updated pytest version in development dependencies
  • pyproject.toml:90 - Updated pytest version in test dependencies

The code changes themselves are clean and consistent. The main requirement is documentation of this major version dependency update.

Automated code review analyzing defects and coding standards

@dependabot dependabot Bot force-pushed the dependabot/pip/pytest-9.0.2 branch from d87a64d to 5a5c39f Compare January 6, 2026 14:12
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 6, 2026

🤖 Claude Code Review

Automated Code Review Analysis

Pull Request Summary

This PR updates pytest from version 8.4.2 to 9.0.2 in the project dependencies (both development and test groups).


Code Quality

Code follows our style guide

  • The changes are minimal and follow standard pyproject.toml formatting conventions
  • No style guide violations detected

No commented-out code

  • No commented code present in the diff

Meaningful variable names

  • N/A - Only dependency version updates

DRY principle followed

  • The dependency is correctly updated in both locations where it appears (development and test groups), maintaining consistency

Identify Defects

  • No bugs, logic errors, or security vulnerabilities introduced
  • This is a straightforward dependency version bump
  • Note: Pytest 9.0.0 introduced breaking changes. Recommend verifying:
    • All existing tests pass with the new version
    • No deprecated pytest features are used in the test suite
    • Plugin compatibility if any pytest plugins are in use

Testing

⚠️ Unit tests for new functions

  • N/A for dependency updates, but test suite should be run to verify compatibility

⚠️ Integration tests for new endpoints

  • N/A for this change

⚠️ Edge cases covered

  • N/A for this change

Test coverage > 80%

  • Cannot verify from diff alone - existing coverage should be maintained after upgrade
  • Recommendation: Run full test suite with coverage report to ensure pytest 9.0.2 upgrade doesn't break any tests

Documentation

Readme updated if needed

  • N/A - Dependency updates typically don't require README changes unless there are breaking changes affecting usage

CHANGELOG.md updated

  • Cannot verify from diff if CHANGELOG.md was updated
  • Recommendation: Should include an entry like:
    ### Changed
    - Updated pytest from 8.4.2 to 9.0.2

API docs updated

  • N/A for dependency updates

Inline comments for complex logic

  • N/A for this change

Markdown files formatting

  • N/A - No markdown files modified in this diff

Security

No hardcoded credentials

  • No credentials present

Input validation implemented

  • N/A for dependency updates

Proper error handling

  • N/A for dependency updates

No sensitive data in logs

  • N/A for dependency updates

No license files (.lic) or AQAAAD strings

  • No license files or suspicious strings detected

Overall Assessment

✅ Approved with Recommendations

This is a clean dependency update PR. The changes are minimal and properly applied to both dependency groups.

Action Items:

  1. Critical: Verify all tests pass with pytest 9.0.2 (major version bump from 8.x)
  2. Recommended: Update CHANGELOG.md to document this dependency change
  3. Recommended: Review pytest 9.0.0 release notes for breaking changes: https://docs.pytest.org/en/stable/changelog.html

Specific Files to Review:

  • pyproject.toml:51 - pytest updated in development group
  • pyproject.toml:90 - pytest updated in test group

Potential Risks:

  • Low Risk: Pytest 9.0.x may have breaking changes from 8.4.x that could affect test execution
  • Ensure CI/CD pipeline passes before merging

Automated code review analyzing defects and coding standards

@dependabot dependabot Bot force-pushed the dependabot/pip/pytest-9.0.2 branch from 5a5c39f to 867723d Compare January 6, 2026 14:19
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 6, 2026

🤖 Claude Code Review

Code Review Analysis

Overview

This PR updates pytest from version 8.4.2 to 9.0.2 across development and test dependencies in pyproject.toml. This is a dependency version bump.


Detailed Checklist Review

Code Quality

Code follows our style guide

  • The changes follow the TOML format and existing project conventions
  • No style guide violations detected

No commented-out code

  • No commented code present in this diff

Meaningful variable names

  • Not applicable - dependency version update only

DRY principle followed

  • The pytest version is updated in both locations where it's defined (development and test sections), which is correct for this file structure
  • Each occurrence serves a different purpose (different dependency groups)

Identify Defects

  • No bugs, logic errors, or security vulnerabilities introduced
  • Note: This is a major version bump (8.x → 9.x) which may introduce breaking changes. Consider verifying:
    • Check pytest 9.0.2 changelog for breaking changes
    • Ensure all tests pass with the new version
    • Review if any test code relies on pytest 8.x-specific behavior

Project memory configuration

  • No .claude/CLAUDE.md file appears to exist in this repository based on the diff context
  • Not applicable

Testing

⚠️ Unit tests for new functions

  • Not applicable - no new functions added
  • Recommendation: Ensure existing test suite runs successfully with pytest 9.0.2

⚠️ Integration tests for new endpoints

  • Not applicable - no new endpoints

⚠️ Edge cases covered

  • Not applicable - dependency update only

⚠️ Test coverage > 80%

  • Cannot verify from diff alone
  • Recommendation: Run test suite with coverage to ensure it remains above 80%

Documentation

Readme updated if needed

  • pyproject.toml:51 and pyproject.toml:90 - While README update may not be critical for a dependency bump, if the README documents development setup or minimum pytest version requirements, it should be checked

⚠️ API docs updated

  • Not applicable - no API changes

Inline comments for complex logic

  • Not applicable - no complex logic added

CHANGELOG.md updated

  • No CHANGELOG.md update visible in this diff
  • Dependency updates, especially major version bumps, should typically be documented in the changelog

⚠️ Markdown files follow CommonMark

  • Not applicable - no markdown files modified

Security

No hardcoded credentials

  • No credentials present

Input validation implemented

  • Not applicable

Proper error handling

  • Not applicable

No sensitive data in logs

  • Not applicable

No license files (.lic) or AQAAAD strings

  • No license files or suspicious strings detected

Summary

Overall Assessment: ⚠️ Approved with Recommendations

Critical Issues

None

Required Actions

  1. CHANGELOG.md (pyproject.toml:51, pyproject.toml:90) - Add entry documenting pytest upgrade from 8.4.2 to 9.0.2
  2. Verify all tests pass with pytest 9.0.2 (major version bump)

Recommendations

  1. Review pytest 9.0 migration guide for any breaking changes that might affect this codebase
  2. Run full test suite to ensure compatibility
  3. Check if README or any setup documentation mentions pytest version requirements

Positive Notes

  • Clean, focused change
  • Consistent version update across all dependency groups
  • No security concerns
  • Follows existing code style

Automated code review analyzing defects and coding standards

@docktermj docktermj self-assigned this Jan 6, 2026
@docktermj docktermj enabled auto-merge (squash) January 6, 2026 14:39
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.4.2 to 9.0.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@8.4.2...9.0.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 9.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/pytest-9.0.2 branch from 867723d to b2e3f7f Compare January 6, 2026 22:26
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 6, 2026

🤖 Claude Code Review

Code Review Analysis

Summary

This PR updates pytest from version 8.4.2 to 9.0.2 across two dependency groups (development and test) in pyproject.toml. This is a dependency update with a major version bump.


Detailed Review

Code Quality ✅

  • Code follows style guide: The changes maintain consistent formatting with the existing pyproject.toml structure
  • No commented-out code: No commented code present
  • Meaningful variable names: N/A - dependency declaration only
  • DRY principle followed: The pytest version is updated in both locations where it appears, maintaining consistency
  • Identify Defects: No defects identified. The change is straightforward and limited to version bumps
  • Project memory: No .claude/CLAUDE.md configuration detected that would affect this review

Testing ⚠️

  • ⚠️ Unit tests for new functions: N/A - This is a dependency update
  • ⚠️ Integration tests for new endpoints: N/A - No new endpoints
  • ⚠️ Edge cases covered: N/A - Dependency update
  • ⚠️ Test coverage > 80%: Cannot verify from diff alone

Recommendation: Since this is a major version upgrade (8.x → 9.x) of pytest, it's critical to:

  1. Run the full test suite to ensure no breaking changes affect existing tests
  2. Review pytest 9.0.2 changelog for breaking changes that might impact test behavior
  3. Verify all tests pass before merging

Documentation ✅

  • Readme updated if needed: Not required for internal dependency update
  • API docs updated: Not applicable
  • Inline comments for complex logic: Not applicable
  • ⚠️ CHANGELOG.md updated: Cannot verify if CHANGELOG exists or was updated from this diff - should be verified
  • Markdown formatting: Not applicable to this change

Security ✅

  • No hardcoded credentials: None present
  • Input validation implemented: Not applicable
  • Proper error handling: Not applicable
  • No sensitive data in logs: Not applicable
  • No license files (.lic) or AQAAAD strings: None present

Action Items

Critical ⚠️

  1. Verify test suite passes: Run full test suite with pytest 9.0.2 to catch any breaking changes from the major version upgrade
  2. Review pytest changelog: Check https://docs.pytest.org/en/stable/changelog.html for breaking changes between 8.4.2 and 9.0.2

Recommended 📋

  1. Update CHANGELOG.md: If present in the project, document this dependency update
  2. Verify CI/CD: Ensure all CI/CD pipelines pass with the new pytest version

Overall Assessment: ✅ APPROVE WITH RECOMMENDATIONS

The code change itself is clean and consistent. However, as this is a major version upgrade of a critical testing framework, thorough testing is essential before merging to production. The change correctly updates both occurrences of the pytest version declaration in pyproject.toml (lines 51 and 90).

Automated code review analyzing defects and coding standards

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jan 7, 2026

Looks like pytest is no longer updatable, so this is no longer needed.

@dependabot dependabot Bot closed this Jan 7, 2026
auto-merge was automatically disabled January 7, 2026 23:31

Pull request was closed

@dependabot dependabot Bot deleted the dependabot/pip/pytest-9.0.2 branch January 7, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python python programming languagae

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants