Repository navigation
tests: skip the swizzle_search no-layout CLI test without numpy - #547
Merged
ItsNotRexed merged 1 commit intoNov 22, 2026
Merged
Conversation
test_preview_with_no_fitting_layout_reports_the_problem runs the tool, which imports numpy before it parses its arguments, so without numpy the test sees a ModuleNotFoundError traceback instead of "no layout" and fails. Its neighbours that run the CLI already skip without numpy. CI's Windows check job has no numpy, so this is its next failure once the mem_diff one (ItsNotRexed#533) is fixed. The pytest wrapper of the same test skips too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claim: #374 (comment) (new TEST item)
Bug.
TestSwizzleSearchCliAndRender.test_preview_with_no_fitting_layout_reports_the_problemrunstools/swizzle_search.py. The tool imports numpy at the top, before it parses arguments, so without numpy the test gets aModuleNotFoundErrortraceback instead ofno layoutand fails. The other CLI tests in the class already carry@unittest.skipUnless(HAVE_NUMPY, ...). CI's Windowscheckjob installs no numpy and stops at the first failing file. On main it currently stops earlier, attest_mem_diff.py(#533 fixes that one), so this is the next failure in line.Fix. The test gets the same
HAVE_NUMPYskip as its neighbours. The module-level pytest wrapper of the same test raisesunittest.SkipTestwithout numpy, and pytest honours that.Tested.
checksetup):python -I tests/test_swizzle_search.pygives OK (skipped=18) and pytest gives 19 skipped. On main the file fails with 1 failure.python -I tests/test_swizzle_search.pyis OK with all 18 run, and pytest gives 19 passed.AI-assisted (Claude Code).
Checklist
🤖 Generated with Claude Code