Repository navigation
Match Element.remove argument type diagnostics - #9068
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Moved the six cases unchanged into stdlib_xml.py in de32170 and removed the separate snippet. The moved block is AST-identical and passes focused CPython 3.14.7/3.14.8 and native checks. Full XML snippet execution is not newly claimed.
71e4bfa to
ba210d6
Compare
ba210d6 to
63be507
Compare
63be507 to
294f2f3
Compare
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [ ] test: cpython/Lib/test/test_mmap.py (TODO: 19) dependencies: dependent tests: (2 tests)
Legend:
|
Match native type names, None spelling, and UTF-8 byte limits while preserving removal behavior. Keep all six regression cases in the existing XML snippet. Assisted-by: OpenAI Codex:model identifier unavailable
294f2f3 to
39feb17
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 39feb175a4
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ] | ||
|
|
||
| root = Element("root") | ||
| for value, type_name in ( |
There was a problem hiding this comment.
Remove the newly added test logic
This hunk adds test data, control flow, and an assertion to extra_tests/snippets/stdlib_xml.py, but the repository's critical test-file policy permits only adding or removing expectedFailure decorators; this regression coverage therefore needs to be removed rather than extending the snippet.
AGENTS.md reference: AGENTS.md:L275-L279
Useful? React with 👍 / 👎.
Current revision
Targets
mainafter #8950, with one logical commit:39feb175a4f6d541055cad830ebfa8ab5e9aa8fd(parentd88c9350fb5de38b8c3be74ba8b53c8dd68a9b8f). The unique patch is byte-identical to the prior reviewed head and now includes main's merged #9082 shared CI fix; original author attribution and assistance trailers are retained. No files underLib/are changed.Normal hooks, whitespace checks, and independent tree/history review passed. The temporary
[skip ci]marker is removed and normal CI is enabled for this final head. No new local build or runtime test is claimed. Validation recorded below belongs to earlier revisions unless explicitly stated otherwise.Rebased once after #9082 merged to repair the shared Python 3.15 IO reference failure. Normal commit hooks and exact range-diff/patch-equivalence checks pass. Exact-head hosted CI is running; no additional local runtime validation is claimed.
Summary
Extract the independent
Element.removeargument diagnostic from #8954, adapted to the exact CPython 3.14 contract:Nonespecially and use the native type name for other invalid arguments.ValueError.This does not include the adjacent 3.15 missing-child message change or any XML parser changes.
Sources: CPython 3.14.8 clinic wrapper,
_PyArg_BadArgument, and UTF-8 precision handling. The relevant 3.14.7 contract is identical.Validation
No XML parser was constructed or executed by these focused tests. Full workspace suites and non-Linux runtime tests were not run locally. hosted CI is temporarily skipped.