Skip to content

gh-7: Test shebang detection after a UTF-8 BOM - #447

Open
Zainalithegreat wants to merge 1 commit into
python:mainfrom
Zainalithegreat:test-utf8-bom-shebang
Open

Zainalithegreat wants to merge 1 commit into
python:mainfrom
Zainalithegreat:test-utf8-bom-shebang

Conversation

@Zainalithegreat

Copy link
Copy Markdown

Adds a case to the existing shebang tests for a script saved with a UTF-8 byte-order mark. The script should select the runtime named in its shebang.

Validation on Windows: 43 shebang cases passed using an isolated pytest run with the repository's FakeConfig fixture. The new case failed when the initial read used plain UTF-8 in a temporary copy. The full suite was not run because the native test extension was unavailable.

Related to #7. AI assisted with the test and focused validation.

@python-cla-bot

python-cla-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

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.

1 participant