aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pg.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pg.py')
-rw-r--r--test/test_pg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pg.py b/test/test_pg.py
index d2e656df58b..da3b2254968 100644
--- a/test/test_pg.py
+++ b/test/test_pg.py
@@ -83,7 +83,7 @@ class TestPgTun(VppTestCase):
rxs = self.send_and_expect(self.pg0, p * N_PKTS, self.pg1)
for rx in rxs:
- rx = IP(rx)
+ rx = IP(bytes(rx))
self.assertFalse(rx.haslayer(Ether))
self.assertEqual(rx[IP].dst, self.pg1.remote_ip4)
@@ -97,7 +97,7 @@ class TestPgTun(VppTestCase):
rxs = self.send_and_expect(self.pg0, p * N_PKTS, self.pg2)
for rx in rxs:
- rx = IPv6(rx)
+ rx = IPv6(bytes(rx))
self.assertFalse(rx.haslayer(Ether))
self.assertEqual(rx[IPv6].dst, self.pg2.remote_ip6)