Address some omissions in the FileReader rewrite regarding unicode paths on windows

This commit is contained in:
Thomas Krijnen
2025-10-24 13:26:27 +02:00
parent e304c3ad31
commit 40c5145a13
2 changed files with 49 additions and 22 deletions
@@ -59,6 +59,17 @@ def test_partial_open():
assert len(f.by_type("ifccartesianpoint")) == 0
def test_opening_unicode():
import ifcopenshell.template
with tempfile.TemporaryDirectory() as d:
fn = os.path.join(d, "ხყჯ𐰢ᨕதకᎣᚱᾗ.ifc")
f = ifcopenshell.template.create()
f.write(fn)
g = ifcopenshell.open(fn)
assert g.by_type("ifcproject")
@pytest.mark.skipif(psutil is None, reason="psutil not installed")
def test_memusage_partial_open():
m0 = psutil.Process().memory_info().rss