From cc991497b830658bdf65b93538d91467ecddef42 Mon Sep 17 00:00:00 2001 From: Alexandre Poirrier Date: Tue, 7 May 2019 10:39:57 +0200 Subject: make test: add python3 compatibility in extend_packet Change-Id: I342ff8e44e0d1ebd9f2c8cc386372b2f5a731080 Signed-off-by: Alexandre Poirrier --- test/framework.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/framework.py') diff --git a/test/framework.py b/test/framework.py index 989fb3d75cf..1a22acd0115 100644 --- a/test/framework.py +++ b/test/framework.py @@ -756,8 +756,8 @@ class VppTestCase(unittest.TestCase): packet_len = len(packet) + 4 extend = size - packet_len if extend > 0: - num = (extend / len(padding)) + 1 - packet[Raw].load += (padding * num)[:extend] + num = (extend // len(padding)) + 1 + packet[Raw].load += (padding * num)[:extend].encode("ascii") @classmethod def reset_packet_infos(cls): -- cgit 1.2.3-korg