Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions studio/backend/tests/test_cu130_repair_torch_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ def test_core_update_freezes_only_torch_past_the_released_ceiling(
monkeypatch, tmp_path, mod, platform, resident, pinned
):
monkeypatch.setattr(mod.sys, "platform", platform)
# x64 hosts: the darwin row is Intel macOS. Apple Silicon keeps its torch at any release
# (test_macos_core_update_torch_freeze.py), so the real machine must not leak in from an arm64 runner.
monkeypatch.setattr(mod.platform, "machine", lambda: "x86_64")
monkeypatch.setattr(mod, "_is_win_arm64_interpreter", lambda: False)
monkeypatch.setattr(mod, "_restrict_to_current_user", lambda path: True)
monkeypatch.setattr(mod, "_resident_torch_release", lambda: resident)
Expand Down