Repository navigation
Conversation
|
Windows, Python 3.13.7, synthetic inputs. Tested df8385b and compared with 849d370. I ran the full test_bink_index.py module on both revisions. The parent had one failure in 32 tests; all 32 passed after updating the assertion to match the KB2 diagnostic. This is a test expectation change. The junk-input case still checked exit 2 and absence of the output file. AI-assisted verification · GPT-6.2 Astra Medium |
|
@TieruYT — thank you for the independent Windows / Python 3.13.7 check with the parent-vs-head control (32 tests: 1 failure on |
|
Tested
AI-assisted (Claude Code). |
|
Closing as a duplicate: PR #7408 (opened 16:43Z, before my claim) already updates this exact test expectation, and @CourtyardGames verified on Windows/Python 3.14 that its hunk makes all 32 tests pass. My claim was made without checking open PRs by test file. No code from mine should land. Sorry for the duplicate. AI-assisted (OpenCode). |
|
Tested
For whoever merges: #7092 and #7408 repair both files. Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; claimed in #8047. |
Claim: #7804 (comment) (issue #7871).
What and why
tests/test_bink_index.py::test_a_single_named_file_that_is_not_a_stream_or_rpf_is_refusedfailed on currentmain: it expectednot a Bink 2 stream or an RPF archive, but a junk first-four-bytes file is refused earlier bytarget_problem()(tools/bink_index.py:347) with the more precisenot a Bink 2 stream (KB2) or an RPF archive. The second wording at line 399 is only for a file whose header looked valid but yielded no streams. The test was asserting the wrong path's message, leaving this named suite permanently red and masking real regressions.The fix updates the assertion to the actual one-line reason and adds a comment recording why the two wordings differ. The tool is unchanged; the refusal exit code (2), the "no Traceback" check and the no-output-file check are all still asserted by the same test.
Tested
Windows 11, CPython 3.12.10, CPU only:
python -I -m unittest discover -s tests -p test_bink_index.py→Ran 32 tests ... OK(was 1 failure before the change).python -m compileall -q make_game.py tools tests→ exit 0.git diff --check→ exit 0.No GPU used. This machine has an NVIDIA GeForce GTX 1060 6GB / driver 582.78, but no GPU test was needed. No game data, keys or decryption; the test writes its own junk file. AI-assisted (OpenCode).
Depends on: none.