aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-21 20:37:30 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-21 19:53:30 +0000
commit3f2a956a44229cc629ea7460554f66b943638316 (patch)
tree44abf2a8ea599f09d458044eaa50254ce16b4b01 /test
parent203bf04d46702b713c96a06c04cd5bfd5156621b (diff)
l2: tests support python3
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Id17bcb65d7eb27f865fc7872b3e485c09f1d29a7
Diffstat (limited to 'test')
-rw-r--r--test/test_l2bd.py2
-rw-r--r--test/test_l2xc_multi_instance.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_l2bd.py b/test/test_l2bd.py
index 718d5126bd9..ecd031188eb 100644
--- a/test/test_l2bd.py
+++ b/test/test_l2bd.py
@@ -126,7 +126,7 @@ class TestL2bd(VppTestCase):
:param count: Integer number of hosts to create MAC/IPv4 addresses for.
"""
n_int = len(cls.pg_interfaces)
- macs_per_if = count / n_int
+ macs_per_if = count // n_int
i = -1
for pg_if in cls.pg_interfaces:
i += 1
diff --git a/test/test_l2xc_multi_instance.py b/test/test_l2xc_multi_instance.py
index f7cffa3eb12..061656a8270 100644
--- a/test/test_l2xc_multi_instance.py
+++ b/test/test_l2xc_multi_instance.py
@@ -141,7 +141,7 @@ class TestL2xcMultiInst(VppTestCase):
:param int count: Number of hosts to create MAC/IPv4 addresses for.
"""
n_int = len(cls.pg_interfaces)
- macs_per_if = count / n_int
+ macs_per_if = count // n_int
i = -1
for pg_if in cls.pg_interfaces:
i += 1