Skip to content

Commit 9e20b99

Browse files
committed
??? no docker for Python < 3.12
1 parent 6c024cf commit 9e20b99

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_ModelicaSystemRunner.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
reason="OpenModelica Docker image is Linux-only; skipping on Windows.",
1212
)
1313

14+
skip_python_older_312 = pytest.mark.skipif(
15+
sys.version_info < (3, 12),
16+
reason="OMCPath(non-local) only working for Python >= 3.12.",
17+
)
18+
1419

1520
@pytest.fixture
1621
def model_firstorder_content():
@@ -151,6 +156,7 @@ def test_ModelicaSystemRunner_bash(model_firstorder, param):
151156

152157

153158
@skip_on_windows
159+
@skip_python_older_312
154160
def test_ModelicaSystemRunner_bash_docker(model_firstorder, param):
155161
omcp = OMPython.OMCSessionDocker(docker="openmodelica/openmodelica:v1.25.0-minimal")
156162
om = OMPython.OMCSessionZMQ(omc_process=omcp)

0 commit comments

Comments
 (0)