Merge pull request #7362 from sboddy/fix_7348_ci_test_normalize_path

This commit is contained in:
Andrej
2025-11-17 07:12:11 +01:00
committed by GitHub
+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)