Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit 37e903e

Browse files
committed
Fix tests
1 parent 84c6a98 commit 37e903e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

python/test/unit/runtime/test_cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import importlib.util
22
import itertools
3+
import os
34
import shutil
45
import tempfile
56

python/test/unit/runtime/test_subproc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import multiprocessing
2+
import os
23
import shutil
34

45
import pytest
@@ -87,6 +88,9 @@ def test_compile_in_forked_subproc_with_forced_gc(fresh_triton_cache) -> None:
8788
This is a regression test that ensures thread pool in MLIRContext is released
8889
safely after compilation.
8990
'''
91+
if os.name == "nt":
92+
pytest.skip("Windows doesn't have fork")
93+
9094
import gc
9195
old_gc_state = gc.isenabled()
9296
# disable GC to manage resources manually in the manner described in comment above

0 commit comments

Comments
 (0)