Tests: update test_codecmaps_{cn,hk,jp,kr,tw}, test_pstats, test_profile, test_cprofile, test_tracemalloc, test_multibytecodec from v3.14.5#7978
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (9)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [x] lib: cpython/Lib/profile.py dependencies:
dependent tests: (1 tests)
[x] lib: cpython/Lib/pstats.py dependencies:
dependent tests: (2 tests)
[x] lib: cpython/Lib/codecs.py dependencies:
dependent tests: (157 tests)
[x] lib: cpython/Lib/tracemalloc.py dependencies:
dependent tests: (2 tests)
Legend:
|
Summary
Refreshes 5 sparsely-marked codec-map tests and populates 5 previously-untracked test files using
scripts/update_lib quickagainst CPython v3.14.5. Per the tracking inventory in #6839.Refreshed (existed, sparsely
@unittest.expectedFailure-marked):test_codecmaps_cntest_codecmaps_hktest_codecmaps_jptest_codecmaps_krtest_codecmaps_twNewly populated (were untracked):
test_pstats(+Lib/pstats.py, +Lib/test/pstats.pckfixture)test_profile(+Lib/profile.py)test_cprofile(skipped at module level until_lsprofis implemented)test_tracemalloc(+Lib/tracemalloc.py, skipped until_tracemallocis implemented)test_multibytecodec(skipped until_multibytecodecis implemented)Failures from missing C extensions (
_lsprof,_tracemalloc,_multibytecodec) are guarded with module-leveltry/except ImportErrorraisingunittest.SkipTestcarrying# TODO: RUSTPYTHONperAGENTS.md. The codec-map suite preserves its existing per-method@unittest.expectedFailure # TODO: RUSTPYTHON; LookupError: unknown encoding: <X>markers — those unblock once_multibytecodeclands. No test bodies were modified.Refs #6839
Test plan
cargo run --release -- -m testwith no unexpected failures and no panics (7 OK + 3 skipped, 62 tests run, 3 skipped at module level)cargo clippy --workspace --exclude rustpython-venvlauncher --exclude rustpython_wasmclean (5 pre-existing must_use warnings inrustpython-compiler-source)cargo fmt --checkcleanscripts/check_redundant_patches.pyreports no orphan markers across all 10 filestest_inspect(downstream consumer of tracemalloc) still passes (362 tests)