Skip to content

Commit

Permalink
Monkey patch 'pytest.mark.forked' as simple 'skip' mark on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Jan 23, 2025
1 parent f5dbfcd commit def056b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/test/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ def pytest_configure(config):
# On Windows, use a dedicated Triton cache per pytest worker to avoid PermissionError.
if os.name == "nt" and worker_id:
os.environ["TRITON_CACHE_DIR"] = tempfile.mkdtemp(prefix="triton-")
if os.name == "nt":
pytest.mark.forked = pytest.mark.skip(reason="Windows doesn't fork")

0 comments on commit def056b

Please sign in to comment.