@@ -45,14 +45,6 @@ def test_open_serial_timedraw(socketio):
4545 general_test_serial (socketio , "timedraw" )
4646
4747
48- @pytest .mark .skipif (
49- running_on_ci (),
50- reason = "VMs have no serial ports" ,
51- )
52- def test_open_serial_timedbinary (socketio ):
53- general_test_serial (socketio , "timedbinary" )
54-
55-
5648def general_test_serial (socketio , buffertype ):
5749 port = "/dev/ttyACM0"
5850 global message
@@ -75,7 +67,7 @@ def general_test_serial(socketio, buffertype):
7567 # check if the send command has been registered
7668 assert any ("send " + port + " /\" ciao/\" " in i for i in message )
7769 #check if message has been sent back by the connected board
78- if buffertype in ( "timedbinary" , " timedraw") :
70+ if buffertype == " timedraw" :
7971 output = decode_output (extract_serial_data (message ))
8072 elif buffertype in ("default" , "timed" ):
8173 output = extract_serial_data (message )
@@ -89,7 +81,7 @@ def general_test_serial(socketio, buffertype):
8981 print (message )
9082 # check if the send command has been registered
9183 assert any ("send " + port + " /\" π§π§π§π§π§π§π§π§π§π§/\" " in i for i in message )
92- if buffertype in ( "timedbinary" , " timedraw") :
84+ if buffertype == " timedraw" :
9385 output = decode_output (extract_serial_data (message ))
9486 elif buffertype in ("default" , "timed" ):
9587 output = extract_serial_data (message )
0 commit comments