From 11ac430155c7153b1fcb3d2f0545533724b6e6d0 Mon Sep 17 00:00:00 2001 From: Mason Tran Date: Thu, 24 Jun 2021 00:28:31 -0400 Subject: [PATCH] [thci] remove assert which checks if the port is unicode (#6762) In the case where the connection is over Telnet, self.port will be None. --- tools/harness-thci/OpenThread.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py index 6e15efab6..c9d9264ea 100644 --- a/tools/harness-thci/OpenThread.py +++ b/tools/harness-thci/OpenThread.py @@ -362,7 +362,6 @@ class OpenThreadTHCI(object): def intialize(self, params): """initialize the serial port with baudrate, timeout parameters""" self.port = params.get('SerialPort', '') - assert isinstance(self.port, unicode), unicode self.log('%s intialize: %r', self.__class__.__name__, params) # params example: {'EUI': 1616240311388864514L, 'SerialBaudRate': None, 'TelnetIP': '192.168.8.181', 'SerialPort': None, 'Param7': None, 'Param6': None, 'Param5': 'ip', 'TelnetPort': '22', 'Param9': None, 'Param8': None}