test: bind Simulation usability guard on host doubles

This commit is contained in:
Frank14f committed 2026-10-28 08:11:14 +08:00
1 parent 7afb5addde
commit 11cbf1194f
2 files changed
+3

No files matched your search

+1
View File
@@ -295,6 +295,7 @@ def test_passive_overlap_failure_keeps_live_state(device, entry, second_x):
_initialized=entry == "runtime_edit",
_assert_allocation_contract=lambda: None,
stream=SimpleNamespace(synchronize=device.synchronize))
sim._require_usable = Simulation._require_usable.__get__(sim)
with pytest.raises(ValueError, match="active fluid receivers|unique cut-link writers"):
if entry == "sync":
bodies.sync_to_gpu(field)