diff --git a/dist/tests/if_lib/bpt_if.py b/dist/tests/if_lib/bpt_if.py index f76319b190..190b999983 100644 --- a/dist/tests/if_lib/bpt_if.py +++ b/dist/tests/if_lib/bpt_if.py @@ -16,9 +16,6 @@ class BptIf(LLShell): """Getters and setters for the memory map.""" DEVICE_NUM = 0x42A5 - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - def is_connected_to_board(self): """Checks if board is connected.""" return self.get_sys_device_num()["data"] == self.DEVICE_NUM diff --git a/dist/tests/if_lib/driver_manager.py b/dist/tests/if_lib/driver_manager.py index f51b7b5916..f3f1f2872c 100644 --- a/dist/tests/if_lib/driver_manager.py +++ b/dist/tests/if_lib/driver_manager.py @@ -13,20 +13,20 @@ from .riot_driver import RiotDriver def driver_from_config(dev_type='serial', *args, **kwargs): """Returns driver instance given configuration""" - if dev_type is 'serial': + if dev_type == 'serial': return SerialDriver(*args, **kwargs) - elif dev_type is 'riot': + elif dev_type == 'riot': return RiotDriver(*args, **kwargs) - elif dev_type is 'driver': + elif dev_type == 'driver': return kwargs['driver'] raise NotImplementedError() def available_configs(dev_type='serial', *args, **kwargs): """Returns possible configurations to attempt to connect to.""" - if dev_type is 'serial': + if dev_type == 'serial': return SerialDriver.get_configs(*args, **kwargs) - elif dev_type is 'riot': + elif dev_type == 'riot': return RiotDriver.get_configs(*args, **kwargs) raise NotImplementedError() diff --git a/dist/tests/if_lib/dut_shell.py b/dist/tests/if_lib/dut_shell.py index 1b6f83fcca..0375d5a184 100644 --- a/dist/tests/if_lib/dut_shell.py +++ b/dist/tests/if_lib/dut_shell.py @@ -20,9 +20,6 @@ class DutShell(BaseDevice): RESULT_ERROR = 'Error' RESULT_TIMEOUT = 'Timeout' - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - @staticmethod def _try_parse_data(data): if ('[' in data) and (']' in data): diff --git a/dist/tests/if_lib/ll_shell.py b/dist/tests/if_lib/ll_shell.py index 2cae64a41c..00e5ccd41e 100644 --- a/dist/tests/if_lib/ll_shell.py +++ b/dist/tests/if_lib/ll_shell.py @@ -24,9 +24,6 @@ class LLShell(BaseDevice): RESULT_ERROR = 'Error' RESULT_TIMEOUT = 'Timeout' - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - @staticmethod def _try_parse_data(data): parsed_data = None