Fix #7348: test_normalize_path failure on CI/Linux.

This commit is contained in:
Stephen Boddy
2025-11-14 15:41:13 +00:00
parent fe80620a5d
commit d4e945222d
+5 -2
View File
@@ -23,6 +23,7 @@ import bonsai.core.tool
import bonsai.tool as tool
import pytest
import tempfile
import os
from pathlib import Path
from bonsai.tool.ifc import Ifc as subject
@@ -318,8 +319,10 @@ class TestUri(test.bim.bootstrap.NewFile):
def test_normalize_path(self):
# Posix format.
path = r"test\test.txt"
assert subject.normalize_path(path) == "test/test.txt"
if os.name == 'nt':
# Limit to windows (#7348)
path = r"test\test.txt"
assert subject.normalize_path(path) == "test/test.txt"
with tempfile.TemporaryDirectory() as tmp_dir:
base_path = Path(tmp_dir)