Commit 9371f1b
fix(tests): skip bash tool tests on Windows
Merge #5680
## Summary
This fixes Windows test collection for `tests/unittests/tools/test_bash_tool.py`.
The test module imports Python's `resource` module at import time, but `resource` is Unix-only and unavailable on Windows. As a result, running the targeted test on Windows fails during collection before pytest can report a skip.
This change adds a module-level Windows skip before importing `resource`.
## Validation
Ran on Windows 10 with Python 3.12:
- `python -m pytest tests/unittests/tools/test_bash_tool.py -q`
- `python -m pytest tests/unittests/platform -q`
- `python -m pytest tests/unittests/utils/test_env_utils.py -q`
Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 9308117141 parent f4743cd commit 9371f1b
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
23 | | - | |
24 | 32 | | |
25 | 33 | | |
26 | 34 | | |
| |||
0 commit comments