summaryrefslogtreecommitdiffstats
path: root/test/test_vcl.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-06-24 22:49:33 +0200
committerKlement Sekera <ksekera@cisco.com>2018-06-24 22:53:37 +0200
commitb9ef2739dd1e681143e78ada1ffc342ae2fb89b0 (patch)
tree83f4c992ac9a1cdc7780e85c69a8a5ced1bc4ad6 /test/test_vcl.py
parent31da2e30317bc1fcb4586e1dc0d560600d9b29d3 (diff)
Revert "Revert "make test: fix broken interfaces""
This reverts commit c8efa29b6f9a91381897b54f1147daf922ed7164. Change-Id: I1d5c5773d5f86a63073e255336bd9de628e26179 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/test_vcl.py')
-rw-r--r--test/test_vcl.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_vcl.py b/test/test_vcl.py
index cba8c67b5c7..79eb75f364f 100644
--- a/test/test_vcl.py
+++ b/test/test_vcl.py
@@ -68,12 +68,12 @@ class VCLTestCase(VppTestCase):
worker_client.join(self.timeout)
try:
self.validateResults(worker_client, worker_server, self.timeout)
- except Exception, error:
+ except Exception as error:
self.fail("Failed with %s" % error)
def thru_host_stack_setup(self):
self.vapi.session_enable_disable(is_enabled=1)
- self.create_loopback_interfaces(range(2))
+ self.create_loopback_interfaces(2)
table_id = 1
@@ -117,7 +117,7 @@ class VCLTestCase(VppTestCase):
def thru_host_stack_ipv6_setup(self):
self.vapi.session_enable_disable(is_enabled=1)
- self.create_loopback_interfaces(range(2))
+ self.create_loopback_interfaces(2)
table_id = 1
@@ -182,7 +182,7 @@ class VCLTestCase(VppTestCase):
try:
self.validateResults(worker_client, worker_server, self.timeout)
- except Exception, error:
+ except Exception as error:
self.fail("Failed with %s" % error)
def validateResults(self, worker_client, worker_server, timeout):