summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/framework.py4
1 files changed, 2 insertions, 2 deletions
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):