Skip to content

test(bink_index): align assertion with actual tool error text including (KB2) (#7871) - #8077

Open
itsfufi wants to merge 1 commit into
ItsNotRexed:mainfrom
itsfufi:fix/test-bink-index-error-text
Open

itsfufi wants to merge 1 commit into
ItsNotRexed:mainfrom
itsfufi:fix/test-bink-index-error-text

Conversation

@itsfufi

@itsfufi itsfufi commented Nov 23, 2026

Copy link
Copy Markdown

What this PR does

Fixes #7871:

  • Updates in to match 's actual error message ().

Verification

  • Ran -> 32/32 tests pass (OK).

AI-assisted. CPU only, no game files needed.

…ng (KB2) (ItsNotRexed#7871)

Update test_a_single_named_file_that_is_not_a_stream_or_rpf_is_refused in tests/test_bink_index.py to include (KB2) in the expected error message string, matching bink_index's actual output.

Fixes ItsNotRexed#7871.
AI-assisted. CPU only.
@molodayamama

Copy link
Copy Markdown

Windows verification at d38a878b2c807a3fad0114c8e77bbbcf89fda5d6: all 32 Bink index tests passed using synthetic input. The unknown-input CLI fixture still requires exit 2 and no output file. The changed assertion now matches the existing diagnostic including (KB2).

AI-assisted verification.

@morodirule

Copy link
Copy Markdown

Tested d38a878 on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. tests/test_bink_index.py 32/32 + bink_names 33/33 OK, bink_play exit 0. Negative control: assertion reverted → 1 failure (the KB2 wording); restored, green again. This is the #6917/#6925 message the open #7092 also addresses — both agree on the text. AI-assisted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_bink_index: baseline failure on main (expected error text omits (KB2))

3 participants