Skip to content

Commit 2c11cbd

Browse files
committed
fix: make memory fixture Windows-safe
1 parent f22db2c commit 2c11cbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/worlds/test_local_inventory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def test_lightweight_inventory_discovers_affinity_and_memory(monkeypatch):
252252
monkeypatch.setattr(
253253
inventory_module.Path,
254254
"read_text",
255-
lambda path, **_kwargs: "MemAvailable: 2048 kB\n" if str(path) == "/proc/meminfo" else "",
255+
lambda path, **_kwargs: "MemAvailable: 2048 kB\n" if path.as_posix() == "/proc/meminfo" else "",
256256
)
257257

258258
inventory = local_inventory(environ={}, device_root=None)

0 commit comments

Comments
 (0)