upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorerrusso <s.russo06@icloud.com>2026-11-21 21:17:07 +0100
committererrusso <s.russo06@icloud.com>2026-11-21 21:17:07 +0100
commite2e5ecd9d86ed0b1bbfdd8bd51e909dc148bd31d (patch)
treeec97755cc10df1d4cc8dd1b521b2a276c2983f3a /runtime/src/pe_loader.cpp
parent711d386320fc69d4c3ccd162f05b747bb2a43ea0 (diff)
fix: test_amd_swizzle exits 0 when numpy is absent
The CI bash loop in CI.yml runs every test that does not import pytest at the top level. With my earlier change test_amd_swizzle no longer imports pytest, so the CI tries to run it. A module-level raise unittest.SkipTest produces a non-zero exit code, which the CI catch with || exit 1. Fix: store the skip condition in a module-level flag and check it in the __main__ guard, which exits 0 with a skipped message. The CI passes and the test still works under both pytest -k and direct invocation.
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions