Skip to content

fix: use sys.executable instead of 'python' in end-to-end tests#27

Open
hai-pilgrim wants to merge 2 commits into
marksverdhei:mainfrom
hai-pilgrim:fix/use-sys-executable-in-e2e-tests
Open

fix: use sys.executable instead of 'python' in end-to-end tests#27
hai-pilgrim wants to merge 2 commits into
marksverdhei:mainfrom
hai-pilgrim:fix/use-sys-executable-in-e2e-tests

Conversation

@hai-pilgrim
Copy link
Copy Markdown

Summary

  • Four of five CLI end-to-end tests were broken on systems where python isn't on PATH (common on Linux where only python3 exists)
  • test_spritegrid_idempotence already used sys.executable correctly; the others did not
  • This PR makes all five tests consistent by using sys.executable

Test plan

  • All 5 end-to-end tests now pass on Python 3 systems without a python symlink
  • test_spritegrid_idempotence behavior unchanged (already used sys.executable)

🤖 Generated with Claude Code

marksverdhei and others added 2 commits March 29, 2026 00:20
'python' is not always on PATH — many systems only have 'python3'.
Four of five CLI tests were broken on any system without a 'python'
symlink. Switch to sys.executable (the running interpreter) so the
tests always invoke the correct Python binary.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pillow 12 deprecates Image.Image.getdata in favour of get_flattened_data
(removal planned for Pillow 14). Update all five affected comparisons in
test_end_to_end.py to silence DeprecationWarnings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants