Skip to content

Commit 9e92f96

Browse files
authored
docs: match CONTRIBUTING.md's test command to what CI runs (RustPython#8427)
`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 RustPython#8415 Assisted-by: Claude Code:claude-sonnet-5
1 parent e4dc580 commit 9e92f96

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,15 @@ $ pytest -v
8989
Rust unit tests can be run with `cargo`:
9090

9191
```shell
92-
$ cargo test --workspace --exclude rustpython_wasm --exclude rustpython-venvlauncher
92+
$ cargo test --workspace --exclude rustpython_wasm --exclude rustpython-venvlauncher --exclude rustpython-capi
93+
```
94+
95+
`rustpython-capi` needs to be tested from inside its own directory, since it has a
96+
separate `cargo` config that only applies there:
97+
98+
```shell
99+
$ cd crates/capi
100+
$ cargo test
93101
```
94102

95103
Python unit tests can be run by compiling RustPython and running the test module:

0 commit comments

Comments
 (0)