tests: skip the Linux-only launcher tests on Windows #331
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/331"
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 KainanP on 2026-11-27T21:17:05Z.
Summary
python -m unittest discover -s tests -qfails on Windows onmain(62c7e39) with 1 failure and 17 errors. All of them test code that runs only on Linux:test_refusal_reasons(CachedRefusalReasons,StrideTableRetry, 7 tests)compile_requesttakesruntime_shaders.compile_lock, which usesfcntltest_runtime_cache_retention(7 tests)mark_in_useandlocked_by_another_launcherusefcntltest_host.OfflineLaunch(2 tests)Host("wine", …)raises "The Wine and Proton backends require Linux"test_shader_prep.ShaderLaunch.test_scarlett_skips_pregame_compilationtest_shader_pack.ScarlettPreparationOptions.test_prep_jobs_defaults_and_boundsos.sched_getaffinitydoes not exist, sopatchcannot replace itThe first four are skipped off Linux with
@unittest.skipUnless(sys.platform == "linux", …), as the suite already does for other Proton-only tests (test_runtime_shader_links,test_pipeline_prep,SeedShaderCache). The last one isn't skipped:prep_jobsalready falls back toos.cpu_count()wheresched_getaffinityis missing, so the test now patches withcreate=Trueand runs on Windows too. Nothing changes on Linux or in CI.I reported these in #313.
Tested
GPU, driver and backend: none needed. Windows 11 Home 10.0.26200, Python 3.12.10, console code page cp1252 (
PYTHONUTF8unset).Commands run and their results:
AI use: Claude Code (an AI coding agent) found the causes, wrote the change, and ran the suite above.
🤖 Generated with Claude Code