tests: test_nup_stand_in's stand-in takes the progress argument (fixes main's Python checks after #1764) #1780
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1780
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/stand-in-test-progress"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Python source checks have failed on
mainsince #1764, on both Ubuntu and Windows. That PR mademake_game.stand_in_damaged_filespass a progress callback, butnx2/test_nup_stand_in.pystill replacesnup.stand_in_damagedwith a one-argument lambda:My mistake in #1764: I ran the new test and the two closest checks, but not the whole suite.
What changed
progressargument.Tested
On Windows 11 with the v2.0.13 Builder's Python and llvm-mingw:
python -I -B nx2/test_nup_stand_in.pygivesstand-ins: ok.python -I -B tests/run_all.pygives 240 passed, 2 failed, 35 skipped. The two failures come from compiler setup on that PC. They don't touch the file this PR changes:test_precompile_compute_guardneeds the MSVC target's libraries.test_fpx_stickyfails while building a64emit with the Builder's llvm-mingw.In CI's failed run for #1764,
nx2/test_nup_stand_in.pywas the only failing check.Checked against main: make_game.stand_in_damaged_files calls
nup.stand_in_damaged(romfs, file_progress("checked"))positionally, and the real signature isstand_in_damaged(romfs, progress=None), solambda romfs, progress=Nonematches both. Main's Windows Python checks failed on this test alone with the<lambda>() takes 1 positional argument but 2 were givenTypeError (everything else passed). The newreported == [True, True]check is correct for both calls. Looks good.Note: draft #1738 changes the same lambda line, so whichever of the two lands second will need a trivial rebase.