From b5976a716738f7562e80b8e046d6fab40e89b0f4 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Wed, 19 May 2021 11:42:42 +0800 Subject: [PATCH] CI: fix error when running pppos test app with python3 Socket.sendall expects bytes in python3, not strings --- tools/test_apps/protocols/pppos/app_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/test_apps/protocols/pppos/app_test.py b/tools/test_apps/protocols/pppos/app_test.py index 818fe17f5e..acf23683c1 100644 --- a/tools/test_apps/protocols/pppos/app_test.py +++ b/tools/test_apps/protocols/pppos/app_test.py @@ -76,7 +76,7 @@ def test_examples_protocol_pppos_connect(env, extra_data): af, socktype, proto, canonname, addr = res sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM) sock.connect(addr) - sock.sendall("Espressif") + sock.sendall(b"Espressif") sock.close() dut1.expect(re.compile(r"IPv6 test passed"))