Skip to content

Commit ecad702

Browse files
committed
Silence DeprecationWarning in tests
1 parent 8f58d08 commit ecad702

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/test_ModelicaSystemCmd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def test_simflags(model_firstorder):
2323
"noRestart": None,
2424
"override": {'b': 2}
2525
})
26-
mscmd.args_set(args=mscmd.parse_simflags(simflags="-noEventEmit -noRestart -override=a=1,x=3"))
26+
with pytest.deprecated_call():
27+
mscmd.args_set(args=mscmd.parse_simflags(simflags="-noEventEmit -noRestart -override=a=1,x=3"))
2728

2829
assert mscmd.get_cmd() == [
2930
mscmd.get_exe().as_posix(),

tests/test_ZMQ.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def test_Simulate(om, model_time_str):
3737

3838

3939
def test_execute(om):
40-
assert om.execute('"HelloWorld!"') == '"HelloWorld!"\n'
40+
with pytest.deprecated_call():
41+
assert om.execute('"HelloWorld!"') == '"HelloWorld!"\n'
4142
assert om.sendExpression('"HelloWorld!"', parsed=False) == '"HelloWorld!"\n'
4243
assert om.sendExpression('"HelloWorld!"', parsed=True) == 'HelloWorld!'

0 commit comments

Comments
 (0)