tests: run the Python suite on Windows #109
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/109"
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?
Imported from brcly/TuxBox. Originally posted by davutsimsekk on 2026-11-24T23:09:15Z.
The Python suite promised Windows support (merged #3) but three checks still fail on Windows:
tests/test_performance.pywrites a UTF-8 BOM fixture withoutencoding="utf-8", soPath.write_textuses the locale encoding and raisesUnicodeEncodeErrorbefore the BOM path is tested.project_tuxbox/runtime_shaders.pyopens the request file with POSIX-onlyos.O_NONBLOCKandos.O_NOFOLLOW;O_NOFOLLOWis also absent on Windows. Both become optional flags; the digest check still authenticates the contents.tools/check_wide_atomic.pyuses a Python 3.12-only nested same-quote f-string, whileCONTRIBUTING.mdanddocs/PROJECTSCARLETT.mdpromise 3.10+. The two conditional declarations are now locals; generated HLSL is unchanged.Test
python -m unittest discover -s tests -q: 205 tests, OK (59 skipped) on Windows 3.11.9.python -m py_compile tools/check_wide_atomic.py: passes on 3.11.No game data or GPU was used.