test_delete_keeps_sidecar_listable_when_mp4_unlink_fails patched os.unlink, but delete() calls path.unlink(). On Python 3.10 Path.unlink dispatches through a cached _accessor bound to os.unlink at import, so patching os.unlink had no effect there and the simulated mp4 unlink wrongly succeeded (the assert delete() is False failed on 3.10 while passing on 3.11+, where Path.unlink looks up os.unlink dynamically). Patch Path.unlink itself, which delete() invokes directly on every supported Python version. Test-only; no behavior change. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_node_prebuilt.py | ||
| install_python_stack.py | ||
| install_sd_cpp_prebuilt.py | ||
| LICENSE.AGPL-3.0 | ||
| node_prebuilt_pins.json | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||