mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
autotest: correct type-check
py2 vs py3
This commit is contained in:
parent
6dd419eff5
commit
109d0286d9
@ -418,7 +418,7 @@ def run_specific_test(step, *args, **kwargs):
|
|||||||
|
|
||||||
print("Got %s" % str(tester))
|
print("Got %s" % str(tester))
|
||||||
for a in tester.tests():
|
for a in tester.tests():
|
||||||
if type(a) != 'Test':
|
if type(a) != Test:
|
||||||
a = Test(a)
|
a = Test(a)
|
||||||
print("Got %s" % (a.name))
|
print("Got %s" % (a.name))
|
||||||
if a.name == test:
|
if a.name == test:
|
||||||
@ -831,7 +831,7 @@ def list_subtests_for_vehicle(vehicle_type):
|
|||||||
subtests = tester.tests()
|
subtests = tester.tests()
|
||||||
sorted_list = []
|
sorted_list = []
|
||||||
for subtest in subtests:
|
for subtest in subtests:
|
||||||
if type(subtest) != 'Test':
|
if type(subtest) != Test:
|
||||||
subtest = Test(subtest)
|
subtest = Test(subtest)
|
||||||
sorted_list.append([subtest.name, subtest.description])
|
sorted_list.append([subtest.name, subtest.description])
|
||||||
sorted_list.sort()
|
sorted_list.sort()
|
||||||
|
Loading…
Reference in New Issue
Block a user