@@ -136,7 +136,6 @@ assert expected_output in plain_str(std_err)
136136result = subprocess.Popen([sys.executable, "scapy/tools/automotive/obdscanner.py", "--help"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
137137assert result.wait() == 0
138138std_out, std_err = result.communicate()
139- assert not std_err
140139expected_output = plain_str(b'Scan for all possible obd service classes and their subfunctions.')
141140assert expected_output in plain_str(std_out)
142141
@@ -245,7 +244,6 @@ with new_can_socket0() as isocan, ISOTPSocket(isocan, 0x7e8, 0x7e0, basecls=OBD,
245244 tester.send(b"\x01\xff\xff\xff\xff")
246245 sim.join(timeout=10)
247246 expected_output = ["5 requests were sent, 4 answered", "2 requests were sent, 1 answered", "1 requests were sent, 1 answered"]
248- assert std_err1 == b'' and std_err2 == b''
249247 for out in expected_output:
250248 assert bytes_encode(out) in bytes_encode(std_out1) or bytes_encode(out) in bytes_encode(std_out2)
251249
@@ -291,7 +289,6 @@ with new_can_socket0() as isocan, ISOTPSocket(isocan, 0x7e8, 0x7e0, basecls=OBD,
291289 tester.send(b"\x01\xff\xff\xff\xff")
292290 sim.join(timeout=10)
293291 expected_output = ["5 requests were sent, 4 answered"]
294- assert std_err1 == b'' and std_err2 == b''
295292 for out in expected_output:
296293 assert bytes_encode(out) in bytes_encode(std_out1) or bytes_encode(out) in bytes_encode(std_out2)
297294
@@ -319,7 +316,6 @@ with new_can_socket0() as isocan, ISOTPSocket(isocan, 0x7e8, 0x7e0, basecls=OBD,
319316 finally:
320317 tester.send(b"\x01\xff\xff\xff\xff")
321318 sim.join(timeout=10)
322- assert std_err1 == b'' and std_err2 == b''
323319 expected_output = ["256 requests were sent", "1 requests were sent, 1 answered"]
324320 for out in expected_output:
325321 assert bytes_encode(out) in bytes_encode(std_out1) or bytes_encode(out) in bytes_encode(std_out2)
0 commit comments