mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Address some omissions in the FileReader rewrite regarding unicode paths on windows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user