diff options
| author | fiestorra <fiestorra@users.noreply.github.com> | 2026-11-30 02:30:52 +0100 |
|---|---|---|
| committer | fiestorra <fiestorra@users.noreply.github.com> | 2026-11-30 14:55:41 +0100 |
| commit | 34046550a8f99c1ce0fdb987405a763154776176 (patch) | |
| tree | 3bfa3d20f62ddddca10e8de042bb94eafd512e3d /runtime/test/cpp_unwind_test.cpp | |
| parent | 20fe0c754679dae766fce379f9bb36da26ee478b (diff) | |
amd_swizzle: validate without numpy, and ask the gate the tool's question
Two things kept this test file red on a machine where numpy came from
pip install --user:
- the tool imported numpy at module level, so a bad --width reported
"needs numpy" instead of "must be at least 1". numpy is imported late now
and only the computation requires it;
- the skip gate asked whether numpy imports *here*, while the tests run the
tool with -I, which hides the user site. It now probes the way the tool runs.
Measured on main b8bd37111, Windows, Python 3.13: 9 failed, 8 passed, 3 skipped
before; 14 passed, 6 skipped after. On a machine where -I sees numpy, the probe
returns true and the three gated cases run exactly as before.
Written with an AI assistant.
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions