test: name the stale fixture DLL when an export is missing #1922
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1922
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1922/head"
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?
@ChazY11 on GitHub · 2026-11-24 21:20 UTC · original
ChazY11:test/x87-missing-export-diagnostic→main· +14 −1 · 1 files · 1 commits · merged 2026-11-24 21:27 UTCWhat
tests/cpu/x87_add.pyresolves a fixture export withgetattr(self.lib, name). When a variant DLL is stale — which happenswhenever a partial build leaves one of the eleven apart — that raises
which names neither the file nor the reason. I hit it twice reviewing #1861 and misread it as a broken fixture both times.
Change
One helper, used by both call sites (
__call__andwith_live_value):self.pathis stored in__init__for the message. No behaviour changes when the export is present.Tested
Negative control, end to end: remove
legacy_controlsfromtests/cpu/x87_examine.def, rebuild onlycpu_x87_examine(leaving the variants as they are), run the fixture:then restore the
.defand rebuild:So the message fires on the real path with the real file name, not only in a unit test of the wrapper.
Scope
One file, one helper, one stored attribute. No fixture, no CMake and no production code changes; every x87 check that consumes
this module still passes.
Notes
@tedin7 on GitHub · 2026-11-24 21:23 UTC · original · reviewed
Review of #1922 at head
8730bc1204(tier TIER_B_TESTS, file tests/cpu/x87_add.py). No P1/P2 defects.Commands run locally:
The change wraps getattr(self.lib, name) so a missing export raises an AssertionError that names the stale DLL. It adds no assertion and no new expected value. The only code path it touches is the failure message of a missing export, so there is no mutation of tools/ or src/ logic that this change makes any test fail. Reverting the wrapper only brings back the raw AttributeError.
Result: the change is a diagnostic improvement and does not pass the quality filter for a safe-merge. No receipt written, not merged. The GitHub check "Build and test on Windows" was still pending at review time. A maintainer can merge it by hand if the clearer message is wanted.
AI-assisted; commands listed were executed locally.