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 50
50
import time
51
51
from typing import Any , Optional , Tuple
52
52
import uuid
53
- import warnings
54
53
import zmq
55
54
56
55
# TODO: replace this with the new parser
@@ -322,12 +321,6 @@ def __del__(self):
322
321
323
322
self .omc_zmq = None
324
323
325
- def execute (self , command : str ):
326
- warnings .warn ("This function is depreciated and will be removed in future versions; "
327
- "please use sendExpression() instead" , DeprecationWarning , stacklevel = 2 )
328
-
329
- return self .sendExpression (command , parsed = False )
330
-
331
324
def sendExpression (self , command : str , parsed : bool = True ) -> Any :
332
325
if self .omc_zmq is None :
333
326
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):
36
36
assert om .sendExpression ('res.resultFile' )
37
37
38
38
39
- def test_execute (om ):
40
- with pytest .deprecated_call ():
41
- assert om .execute ('"HelloWorld!"' ) == '"HelloWorld!"\n '
39
+ def test_sendExpression (om ):
42
40
assert om .sendExpression ('"HelloWorld!"' , parsed = False ) == '"HelloWorld!"\n '
43
41
assert om .sendExpression ('"HelloWorld!"' , parsed = True ) == 'HelloWorld!'
44
42
You can’t perform that action at this time.
0 commit comments