Skip to content

Fall back to pure Python YAML loader in schema tests - #5395

Merged
jlowin merged 1 commit into
mainfrom
codex/yaml-loader-fallback
Oct 3, 2026
Merged

jlowin merged 1 commit into
mainfrom
codex/yaml-loader-fallback

Conversation

@jlowin

@jlowin jlowin commented Oct 3, 2026

Copy link
Copy Markdown
Member

The real-world schema test imports PyYAML's optional C loader during pytest collection. With a pure-Python PyYAML installation, that import fails before pytest can apply the integration-test skip.

Prefer CSafeLoader when available and fall back to SafeLoader when the C extension is unavailable, preserving safe YAML loading in either installation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-03T00:56:10.028078Z 20dcae2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@marvin-context-protocol marvin-context-protocol Bot added bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. tests labels Oct 3, 2026
@jlowin
jlowin merged commit c3b8166 into main Oct 3, 2026
21 checks passed
@jlowin
jlowin deleted the codex/yaml-loader-fallback branch October 3, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant