Skip to content

build(deps): update pytest to 9.1.1 - #500

Merged
james-d-mitchell merged 1 commit into
mainfrom
codex/fix-dependabot-38
Sep 10, 2026
Merged

james-d-mitchell merged 1 commit into
mainfrom
codex/fix-dependabot-38

Conversation

@james-d-mitchell

Copy link
Copy Markdown
Member

Update pytest from 8.4.2 to 9.1.1 to address Dependabot alert #38, concerning insecure temporary-directory handling (CVE-2025-71176). Raise the test extra's minimum in pyproject.toml and update the pins in requirements.txt and uv.lock, so both pip and uv installations select a patched version.

The security fix first shipped in pytest 9.0.3. Version 9.1.1 also includes the fix for --strict-markers and --strict-config supplied through addopts, which this repository uses. Python 3.10+ remains supported. No unrelated dependency versions change.

Validation, using a temporary Python 3.13 environment with the repository's Python sources and existing compiled extension:

  • uv lock --check --offline passed, and a structural comparison confirmed only pytest and its project requirement changed in the lockfile.
  • uv sync --locked --all-extras --no-install-project --python /opt/homebrew/bin/python3.13 succeeded.
  • python -m pytest -m quick -q -o verbosity_test_cases=0: 91 passed, 641 deselected.
  • python -m pytest -m 'not standard and not extreme' -q -o verbosity_test_cases=0: all 732 collected tests passed.
  • Both pre-commit hook stages ran on the three changed files: codespell passed; other hooks skipped because no applicable files changed.
  • No C++ rebuild or documentation build was performed for this dependency-only change.

AI disclosure: OpenAI Codex investigated the alert, prepared the dependency update and PR description, and ran the validation checks.

Raise the test dependency minimum and update both dependency pins to
address CVE-2025-71176 and Dependabot alert 38. Version 9.1.1 also includes
the fix for strict marker/configuration flags supplied through addopts.

AI assistance: OpenAI Codex investigated the alert, prepared the dependency
update, and ran the repository tests, lockfile validation, and hooks.

Co-authored-by: Codex <codex@openai.com>
@james-d-mitchell
james-d-mitchell enabled auto-merge (rebase) September 10, 2026 09:14
@james-d-mitchell
james-d-mitchell merged commit 97974b1 into main Sep 10, 2026
24 checks passed
@james-d-mitchell
james-d-mitchell deleted the codex/fix-dependabot-38 branch September 12, 2026 12:12
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.

2 participants