From 0539e521cb9605ac41950b1016c3f1a9ad962ea1 Mon Sep 17 00:00:00 2001 From: leehanjeong Date: Sat, 1 Aug 2026 17:46:28 +0900 Subject: [PATCH] docs: match CONTRIBUTING.md's test command to what CI runs `cargo test --workspace ...` segfaults on rustpython-capi when run from the workspace root; it needs its own config that only applies inside crates/capi. CI already excludes it from the workspace run and tests it separately. Document both. Closes #8415 Assisted-by: Claude Code:claude-sonnet-5 --- CONTRIBUTING.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 58954486eaf..637ecf0993a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -89,7 +89,15 @@ $ pytest -v Rust unit tests can be run with `cargo`: ```shell -$ cargo test --workspace --exclude rustpython_wasm --exclude rustpython-venvlauncher +$ cargo test --workspace --exclude rustpython_wasm --exclude rustpython-venvlauncher --exclude rustpython-capi +``` + +`rustpython-capi` needs to be tested from inside its own directory, since it has a +separate `cargo` config that only applies there: + +```shell +$ cd crates/capi +$ cargo test ``` Python unit tests can be run by compiling RustPython and running the test module: