From 770a0deaadfb2d26cbc5da05f84578a7bd92e9d2 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Thu, 7 Nov 2019 13:52:21 +0100 Subject: tests: python3 use byte strings in raw() Raw('\xaf) and Raw(b'\xaf) are two quite different things in python 2 versus 3. In most cases this didn't make a difference, apart from those cases where length of payload actually mattered. Type: fix Signed-off-by: Ole Troan Change-Id: I3cba5c1486e436a3ca8aa10a7b393da75aa9f6b9 --- test/test_vxlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_vxlan.py') diff --git a/test/test_vxlan.py b/test/test_vxlan.py index b292aac4a12..692930eb1f2 100644 --- a/test/test_vxlan.py +++ b/test/test_vxlan.py @@ -236,7 +236,7 @@ class TestVxlan(BridgeDomain, VppTestCase): frame = (Ether(src='00:00:00:00:00:02', dst='00:00:00:00:00:01') / IP(src='4.3.2.1', dst='1.2.3.4') / UDP(sport=20000, dport=10000) / - Raw('\xa5' * 1450)) + Raw(b'\xa5' * 1450)) self.pg1.add_stream([frame]) -- cgit 1.2.3-korg