aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-18 14:40:54 +0200
committerOle Troan <ot@cisco.com>2019-10-18 14:40:54 +0200
commit5dc5fcf14c5b841cc02f016c2cc31ff23fcd32e8 (patch)
tree63f6dd26fd1e2cbfc1e7f0d0e836c21b4a0fb474
parente5b83aa3ebb2617d5b081c425cd85569e508d5bf (diff)
udp:: support python3 in tests
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Iea19d7bc2dfe9736ddefb4419509ccfda7a67eeb
-rw-r--r--test/test_udp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_udp.py b/test/test_udp.py
index fc77434184c..95dddff2c17 100644
--- a/test/test_udp.py
+++ b/test/test_udp.py
@@ -278,9 +278,9 @@ class TestUDP(VppTestCase):
table_id += 1
# Configure namespaces
- self.vapi.app_namespace_add_del(namespace_id="0",
+ self.vapi.app_namespace_add_del(namespace_id="0".encode('ascii'),
sw_if_index=self.loop0.sw_if_index)
- self.vapi.app_namespace_add_del(namespace_id="1",
+ self.vapi.app_namespace_add_del(namespace_id="1".encode('ascii'),
sw_if_index=self.loop1.sw_if_index)
def tearDown(self):