Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 6, 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 Pull requests that update python code labels Jan 6, 2026
@dependabot dependabot bot requested a review from a team as a code owner January 6, 2026 16:25
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jan 6, 2026
@github-actions
Copy link

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 development and test dependencies. This is a straightforward dependency update.


Detailed Checklist Review

Code Quality

Code follows style guide (pyproject.toml:45,82)

  • The changes maintain consistent TOML formatting
  • Dependency declarations follow existing patterns

No commented-out code

  • No commented code present in the diff

Meaningful variable names

  • N/A - This is a dependency version update only

DRY principle followed (pyproject.toml:45,82)

  • Note: pytest version is declared twice (lines 45 and 82)
  • While this creates duplication, it appears intentional - once in development dependencies and once in test dependencies
  • Both instances were correctly updated to maintain consistency

Defects Analysis

  • No bugs or logic errors introduced
  • No security vulnerabilities added
  • Version 9.0.2 is a legitimate pytest release
  • ⚠️ Recommendation: Verify pytest 9.x compatibility with your test suite, as this is a major version bump that may include breaking changes

Project Memory Configuration

  • No .claude/CLAUDE.md file found in the repository to consider

Testing

Unit tests for new functions (pyproject.toml:45,82)

  • N/A for dependency updates, but action required: You should run the existing test suite to verify compatibility with pytest 9.0.2
  • Recommended: Execute pytest to ensure no breaking changes affect your tests

Integration tests for new endpoints

  • N/A - No new endpoints

Edge cases covered

  • N/A - Dependency update

Test coverage > 80%

  • Cannot assess without running tests - coverage should remain unchanged if tests pass

Documentation

Readme updated if needed

  • No README changes in this PR
  • Likely not needed for internal dependency update

API docs updated

  • N/A - No API changes

Inline comments for complex logic

  • N/A - No logic changes

CHANGELOG.md updated

  • CHANGELOG.md not included in diff
  • Recommendation: Add entry noting pytest upgrade to 9.0.2 if you maintain a changelog

Markdown formatting

  • N/A - No markdown files modified

Security

No hardcoded credentials

  • No credentials present

Input validation implemented

  • N/A - Dependency update only

Proper error handling

  • N/A - No code logic changes

No sensitive data in logs

  • No logging changes

No license files (.lic) or AQAAAD strings

  • No license files or suspicious strings detected

Overall Assessment

APPROVAL STATUS: ✅ APPROVED with recommendations

Strengths:

  • Clean, focused dependency update
  • Both instances of pytest version updated consistently
  • No security concerns introduced

Required Actions:

  1. Run full test suite to verify pytest 9.0.2 compatibility
  2. Review pytest 9.0 release notes for breaking changes: https://docs.pytest.org/en/stable/changelog.html

Optional Recommendations:

  1. Consider updating CHANGELOG.md to document this dependency update
  2. Review pytest 9.x migration guide if any test failures occur

The changes are minimal and low-risk, but validation testing is essential given the major version bump.

Automated code review analyzing defects and coding standards

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 939420f to 40445ff Compare January 6, 2026 16:30
@github-actions
Copy link

github-actions bot commented Jan 6, 2026

🤖 Claude Code Review

Automated Code Review

Analysis of PR Diff

This pull request 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 are consistent with the existing file format and TOML syntax conventions.

No commented-out code - No commented code present in the changes.

Meaningful variable names - N/A - This is a dependency version update only.

DRY principle followed - The pytest version is defined in two places (development and test dependency groups), which is appropriate for this use case to ensure consistency across both groups.

No defects identified - The changes are straightforward dependency updates. However, ⚠️ Note: This is a major version bump (8.x → 9.x) for pytest. While the syntax is correct, this should be verified:

  • Check if pytest 9.0.2 introduces any breaking changes that could affect existing tests
  • Ensure all tests pass with the new version
  • Review pytest 9.0 changelog for any API changes

Project memory configuration - No .claude/CLAUDE.md file detected in this repository based on the git status, so this criterion is not applicable.


Testing

⚠️ Testing verification needed - Since this is a major version upgrade of the testing framework itself:

  • Verify all existing unit tests pass with pytest 9.0.2
  • Verify integration tests pass
  • Confirm edge cases still work as expected
  • Check that test coverage reporting still functions correctly

Recommendation: Run the full test suite to confirm compatibility before merging.


Documentation

Readme updated - N/A for dependency updates unless there are breaking changes that affect how developers run tests.

API docs updated - N/A for dependency updates.

Inline comments - N/A for this change.

CHANGELOG.md updated - No changes to CHANGELOG.md are present in this diff. Action required: Update CHANGELOG.md to document the pytest version upgrade from 8.4.2 to 9.0.2.

Markdown formatting - N/A for this change (no markdown files modified).


Security

No hardcoded credentials - None present.

Input validation - 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 - No .lic files or AQAAAD strings detected in the changes.


Summary

✅ Approved with Recommendations

Critical Issues: None

Required Actions:

  1. Update CHANGELOG.md to document the pytest version bump (pyproject.toml:45, pyproject.toml:82)
  2. Run full test suite to verify pytest 9.0.2 compatibility (major version upgrade)

Recommendations:

  • Review the pytest 9.0 release notes for breaking changes
  • Consider testing in a staging environment first if this is a production dependency

The code changes themselves are clean and correctly implemented, but the major version upgrade warrants thorough testing before merging.

Automated code review analyzing defects and coding standards

@docktermj docktermj self-assigned this Jan 7, 2026
@docktermj docktermj enabled auto-merge (squash) January 7, 2026 14:19
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

🤖 Claude Code Review

Code Review Analysis

✅ Code Quality

✅ Code follows style guide - N/A for dependency updates

✅ No commented-out code - None present

✅ Meaningful variable names - N/A for dependency updates

✅ DRY principle followed - The pytest version is updated in both locations (lines 45 and 82 in pyproject.toml:45 and pyproject.toml:82), which is appropriate for keeping development and test dependencies in sync

✅ Identify Defects - No defects identified. This is a straightforward dependency version bump from pytest 8.4.2 to 9.0.2. The change appears consistent across both the development and test dependency groups.

N/A Project memory (.claude/CLAUDE.md) - Not applicable to this dependency update

✅ Testing

⚠️ Unit tests for new functions - N/A for dependency updates, but this change warrants verification:

  • This is a major version bump (8.x → 9.x) for pytest
  • Recommend running the full test suite to ensure no breaking changes affect existing tests
  • pytest 9.0 may have API changes or deprecations that could impact test behavior

N/A Integration tests - No new endpoints added

N/A Edge cases covered - No new functionality

⚠️ Test coverage - Cannot determine from diff alone; existing tests should be run to verify compatibility

⚠️ Documentation

❌ CHANGELOG.md updated - No evidence of CHANGELOG.md update in this diff. For a major version dependency update, this should be documented.

✅ Readme updated - Not required for internal dependency updates

✅ API docs updated - Not applicable

✅ Inline comments - Not applicable

✅ Markdown formatting - Not applicable to this change

✅ Security

✅ No hardcoded credentials - None present

✅ Input validation - N/A

✅ Proper error handling - N/A

✅ No sensitive data in logs - N/A

✅ No license files (.lic) - None present


Summary

This PR updates pytest from version 8.4.2 to 9.0.2, which is a major version upgrade.

✅ Positives:

  • Clean, focused change
  • Consistently updated in both development and test dependency groups
  • No code quality or security concerns

⚠️ Recommendations:

  1. CHANGELOG.md (pyproject.toml:45, pyproject.toml:82): Add an entry documenting this pytest major version upgrade

  2. Testing verification: Since this is a major version bump, ensure:

  3. Consider alignment with recent activity: I notice there was a recent PR (Bump sphinx-gallery from 0.19.0 to 0.20.0 #140) that merged just before this. Ensure CI/CD passes with the new pytest version.

Overall Assessment: ✅ APPROVED with minor documentation request

The code change itself is sound, but please add a CHANGELOG entry for traceability of this dependency upgrade.

Automated code review analyzing defects and coding standards

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 Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants