Skip to content

Use expected_files.add as context manager where applicable - #22337

Merged
navntoft merged 1 commit into
mainfrom
navntoft/expected-files-ctx
Aug 13, 2026
Merged

Use expected_files.add as context manager where applicable#22337
navntoft merged 1 commit into
mainfrom
navntoft/expected-files-ctx

Conversation

@navntoft

@navntoft navntoft commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #22329 (comment).

@navntoft
navntoft requested a review from redsun82 August 13, 2026 13:04
@navntoft
navntoft marked this pull request as ready for review August 13, 2026 14:12
@navntoft
navntoft requested review from a team as code owners August 13, 2026 14:12
Copilot AI balanced review requested due to automatic review settings August 13, 2026 14:12

Copilot AI 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.

Pull request overview

Updates tests to use expected_files.add(...) directly as a context manager.

Changes:

  • Consolidates expected-file registration and writing.
  • Removes redundant direct file-opening calls.
Show a summary per file
File Description
swift/ql/integration-tests/posix/frontend-invocations/test.py Writes hashes through the fixture context manager.
misc/pytest/lib/query_suites.py Writes query-suite results through the fixture.
java/ql/integration-tests/kotlin/all-platforms/logs/test.py Writes normalized logs through the fixture.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@navntoft
navntoft merged commit a80d7e0 into main Aug 13, 2026
30 checks passed
@navntoft
navntoft deleted the navntoft/expected-files-ctx branch August 13, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants