Add in a couple of missed conversions

pull/11921/head
Graham Hammond 2019-11-27 11:08:50 +00:00
parent c223ac99b3
commit 23b12f4d1b
7 changed files with 7 additions and 5 deletions

View File

@ -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.
"""

View File

@ -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)

View File

@ -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

View File

@ -19,7 +19,7 @@ import sys
import uuid
from sys import stdout
class EchoTest():
class EchoTest(object):
# Test parameters
TEST_SERIAL_BAUDRATE = 115200

View File

@ -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)

View File

@ -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

View File

@ -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: