Skip to content

Restore CPython test setup in test_int and test_pdb - #10158

Merged
youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:restore-canonical-int-and-pdb-test-setup
Dec 4, 2026
Merged

youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:restore-canonical-int-and-pdb-test-setup

Conversation

@youknowdot

Copy link
Copy Markdown
Contributor

Restore the CPython 3.15.2 test setup through update_lib:

  • test_int: restore the unittest.mock import and two CPython-only decorators. The WASI suite already runs test_codecs, which imports the same module. Keep the existing wasm clock guard.
  • test_pdb: return to the default doctest output checker. There are no expected-failure flags in the suite. Keep the four real doctest skips and the Android marker. The expected outputs and flags of all 448 discovered examples are unchanged.

On Linux, CPython and RustPython passed the selected integer, codec and pdb controls (50 cases on each; three CPython-specific cases skipped on RustPython). The two restored mock-decorated tests remain CPython-only. Git hooks and the local dependency check passed. Full suites and candidate WASI/macOS/Windows runs are left to CI; no runtime code changed.

Refs #9852.

Regenerate both files from v3.15.2 with update_lib, preserving active RustPython guards. WASI already imports unittest.mock in test_codecs, and no pdb doctest uses the custom expected-failure checker.

Refs: RustPython#9852

Assisted-by: Codex:GPT-6.2
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@codspeed

codspeed Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 62 untouched benchmarks
⏩ 4 skipped benchmarks1


Comparing youknowdot:restore-canonical-int-and-pdb-test-setup (cb753ea) with main (174c105)

Open in CodSpeed

Footnotes

  1. 4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@youknowone

Copy link
Copy Markdown
Member

cc @jiwahn , thanks!

@youknowone
youknowone marked this pull request as ready for review December 4, 2026 02:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T02:20:18.566981Z cb753ea Draft marked ready
ℹ️ 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.

@youknowone
youknowone merged commit e500b64 into RustPython:main Dec 4, 2026
20 checks passed
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