Skip to content

Commit 0936170

Browse files
committed
[test_OMCPath] only for Python >= 3.12
1 parent b210e2c commit 0936170

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_OMCPath.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@
77
reason="OpenModelica Docker image is Linux-only; skipping on Windows.",
88
)
99

10+
skip_python_older_312 = pytest.mark.skipif(
11+
sys.version_info < (3, 12),
12+
reason="OMCPath only working for Python >= 3.12 (definition of pathlib.PurePath).",
13+
)
14+
1015

1116
@skip_on_windows
17+
@skip_python_older_312
1218
def test_OMCPath_docker():
1319
omcp = OMPython.OMCProcessDocker(docker="openmodelica/openmodelica:v1.25.0-minimal")
1420
om = OMPython.OMCSessionZMQ(omc_process=omcp)
@@ -29,6 +35,7 @@ def test_OMCPath_docker():
2935
del om
3036

3137

38+
@skip_python_older_312
3239
def test_OMCPath_local():
3340
om = OMPython.OMCSessionZMQ()
3441

0 commit comments

Comments
 (0)