diff --git a/tools/host_tests/default_auto.py b/tools/host_tests/default_auto.py index 7234e366b0..cc233c5a66 100644 --- a/tools/host_tests/default_auto.py +++ b/tools/host_tests/default_auto.py @@ -18,7 +18,7 @@ from __future__ import print_function from sys import stdout -class DefaultAuto(): +class DefaultAuto(object): """ Simple, basic host test's test runner waiting for serial port output from MUT, no supervision over test running in MUT is executed. """ diff --git a/tools/host_tests/detect_auto.py b/tools/host_tests/detect_auto.py index 2999946c08..c397f3b4a0 100644 --- a/tools/host_tests/detect_auto.py +++ b/tools/host_tests/detect_auto.py @@ -17,7 +17,7 @@ limitations under the License. import re -class DetectPlatformTest(): +class DetectPlatformTest(object): PATTERN_MICRO_NAME = "Target '(\w+)'" re_detect_micro_name = re.compile(PATTERN_MICRO_NAME) diff --git a/tools/host_tests/dev_null_auto.py b/tools/host_tests/dev_null_auto.py index 4538f6d79e..c7e0238c7a 100644 --- a/tools/host_tests/dev_null_auto.py +++ b/tools/host_tests/dev_null_auto.py @@ -15,7 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. """ -class DevNullTest(): +class DevNullTest(object): def check_readline(self, selftest, text): """ Reads line from serial port and checks if text was part of read string diff --git a/tools/host_tests/echo.py b/tools/host_tests/echo.py index 75e534fb84..1aa18b6bb8 100644 --- a/tools/host_tests/echo.py +++ b/tools/host_tests/echo.py @@ -19,7 +19,7 @@ import sys import uuid from sys import stdout -class EchoTest(): +class EchoTest(object): # Test parameters TEST_SERIAL_BAUDRATE = 115200 diff --git a/tools/host_tests/rtc_auto.py b/tools/host_tests/rtc_auto.py index d267936517..67528031f7 100644 --- a/tools/host_tests/rtc_auto.py +++ b/tools/host_tests/rtc_auto.py @@ -18,7 +18,7 @@ limitations under the License. import re from time import time, strftime, gmtime -class RTCTest(): +class RTCTest(object): PATTERN_RTC_VALUE = "\[(\d+)\] \[(\d+-\d+-\d+ \d+:\d+:\d+ [AaPpMm]{2})\]" re_detect_rtc_value = re.compile(PATTERN_RTC_VALUE) diff --git a/tools/host_tests/tcpecho_server_loop.py b/tools/host_tests/tcpecho_server_loop.py index d38258c959..7317e302b3 100644 --- a/tools/host_tests/tcpecho_server_loop.py +++ b/tools/host_tests/tcpecho_server_loop.py @@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ +from __future__ import print_function # Be sure that the tools directory is in the search path import sys from os.path import join, abspath, dirname diff --git a/tools/host_tests/udpecho_server.py b/tools/host_tests/udpecho_server.py index 5a9f2cab62..96c2db7fb8 100644 --- a/tools/host_tests/udpecho_server.py +++ b/tools/host_tests/udpecho_server.py @@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ +from __future__ import print_function try: from SocketServer import BaseRequestHandler, UDPServer except ImportError: