Skip to content

Commit 679bbd6

Browse files
committed
[test_FMIExport] fix due to OMCPath usage
1 parent 2129cc3 commit 679bbd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_FMIExport.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import OMPython
22
import shutil
33
import os
4+
import pathlib
45

56

67
def test_CauerLowPassAnalog():
78
mod = OMPython.ModelicaSystem(modelName="Modelica.Electrical.Analog.Examples.CauerLowPassAnalog",
89
lmodel=["Modelica"])
9-
tmp = mod.getWorkDirectory()
10+
tmp = pathlib.Path(mod.getWorkDirectory())
1011
try:
1112
fmu = mod.convertMo2Fmu(fileNamePrefix="CauerLowPassAnalog")
1213
assert os.path.exists(fmu)
@@ -16,7 +17,7 @@ def test_CauerLowPassAnalog():
1617

1718
def test_DrumBoiler():
1819
mod = OMPython.ModelicaSystem(modelName="Modelica.Fluid.Examples.DrumBoiler.DrumBoiler", lmodel=["Modelica"])
19-
tmp = mod.getWorkDirectory()
20+
tmp = pathlib.Path(mod.getWorkDirectory())
2021
try:
2122
fmu = mod.convertMo2Fmu(fileNamePrefix="DrumBoiler")
2223
assert os.path.exists(fmu)

0 commit comments

Comments
 (0)