Commit 4ab8404
authored
Add --showlocals to all pytest configurations (#1286)
Add '--showlocals' option to pytest configurations across all projects
to ensure consistent behavior when displaying local variables in test
failures.
Pytest does not merge addopts across configuration files - it uses the
first configuration found. When running pytest from a subdirectory, the
local pytest.ini or pyproject.toml takes precedence over the root config.
To ensure --showlocals applies regardless of where pytest is invoked, we
add it to each project's configuration:
- Root pytest.ini: applies when running from repository root
- cuda_core/pytest.ini: applies when running from cuda_core directory
- cuda_bindings/pyproject.toml: appended to existing addopts
- cuda_pathfinder/pyproject.toml: added new pytest.ini_options section
This approach ensures uniform pytest behavior across all projects while
maintaining the ability to run tests from any directory.1 parent ca74d6d commit 4ab8404
File tree
4 files changed
+6
-1
lines changed- cuda_bindings
- cuda_core
- cuda_pathfinder
4 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments