tests: support python 3.8

Make test framework python3 version independence.

Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I1ef1eb77b6c1f422ebc4dad0818f87c8e587b34b
This commit is contained in:
Ole Troan
2020-02-04 13:28:13 +01:00
committed by Paul Vinciguerra
parent dc90c719bc
commit 6e6ad64a4c
4 changed files with 7 additions and 8 deletions

View File

@ -1278,7 +1278,7 @@ class TestIPv6RDControlPlane(TestIPv6ND):
while (n_tries):
fib = self.vapi.ip_route_dump(0, True)
default_routes = self.get_default_routes(fib)
if 0 is len(default_routes):
if 0 == len(default_routes):
return True
n_tries = n_tries - 1
self.sleep(s_time)