File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change 5050import time
5151from typing import Any , Optional , Tuple
5252import uuid
53- import warnings
5453import zmq
5554
5655# TODO: replace this with the new parser
@@ -325,12 +324,6 @@ def __del__(self):
325324
326325 self .omc_zmq = None
327326
328- def execute (self , command : str ):
329- warnings .warn ("This function is depreciated and will be removed in future versions; "
330- "please use sendExpression() instead" , DeprecationWarning , stacklevel = 2 )
331-
332- return self .sendExpression (command , parsed = False )
333-
334327 def sendExpression (self , command : str , parsed : bool = True ) -> Any :
335328 if self .omc_zmq is None :
336329 raise OMCSessionException ("No OMC running. Create a new instance of OMCSessionZMQ!" )
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ def test_Simulate(om, model_time_str):
3636 assert om .sendExpression ('res.resultFile' )
3737
3838
39- def test_execute (om ):
40- with pytest .deprecated_call ():
41- assert om .execute ('"HelloWorld!"' ) == '"HelloWorld!"\n '
39+ def test_sendExpression (om ):
4240 assert om .sendExpression ('"HelloWorld!"' , parsed = False ) == '"HelloWorld!"\n '
4341 assert om .sendExpression ('"HelloWorld!"' , parsed = True ) == 'HelloWorld!'
4442
You can’t perform that action at this time.
0 commit comments