mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix #7348: test_normalize_path failure on CI/Linux.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user