diff options
author | Ole Troan <ot@cisco.com> | 2019-11-07 13:52:21 +0100 |
---|---|---|
committer | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-11-08 13:25:56 +0000 |
commit | 770a0deaadfb2d26cbc5da05f84578a7bd92e9d2 (patch) | |
tree | df34de2e51331ab7ae868ecc7f253469f8448981 /src/plugins/igmp/test/test_igmp.py | |
parent | 76a36e83e39cbf7828a647d8afadfaef642e1c84 (diff) |
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 <ot@cisco.com>
Change-Id: I3cba5c1486e436a3ca8aa10a7b393da75aa9f6b9
Diffstat (limited to 'src/plugins/igmp/test/test_igmp.py')
-rw-r--r-- | src/plugins/igmp/test/test_igmp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/igmp/test/test_igmp.py b/src/plugins/igmp/test/test_igmp.py index e90fbfbf775..3f9b99bb5b5 100644 --- a/src/plugins/igmp/test/test_igmp.py +++ b/src/plugins/igmp/test/test_igmp.py @@ -202,7 +202,7 @@ class TestIgmp(VppTestCase): IP(src=self.pg0.remote_ip4, dst='224.0.0.1', tos=0xc0) / IGMPv3(type="Membership Query", mrcode=100) / IGMPv3mq(gaddr="0.0.0.0") / - Raw('\x00' * 10)) + Raw(b'\x00' * 10)) self.send(self.pg0, p_g) |