tests: python3 use byte strings in raw() 09/23309/2
authorOle Troan <ot@cisco.com>
Thu, 7 Nov 2019 12:52:21 +0000 (13:52 +0100)
committerPaul Vinciguerra <pvinci@vinciconsulting.com>
Fri, 8 Nov 2019 13:25:56 +0000 (13:25 +0000)
commit770a0deaadfb2d26cbc5da05f84578a7bd92e9d2
treedf34de2e51331ab7ae868ecc7f253469f8448981
parent76a36e83e39cbf7828a647d8afadfaef642e1c84
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
19 files changed:
src/plugins/abf/test/test_abf.py
src/plugins/flowprobe/test/test_flowprobe.py
src/plugins/gbp/test/test_gbp.py
src/plugins/igmp/test/test_igmp.py
src/plugins/l3xc/test/test_l3xc.py
src/plugins/svs/test/test_svs.py
test/test_bfd.py
test/test_dvr.py
test/test_ip6.py
test/test_ip_mcast.py
test/test_ipsec_tun_if_esp.py
test/test_l2_flood.py
test/test_mpls.py
test/test_neighbor.py
test/test_p2p_ethernet.py
test/test_pipe.py
test/test_udp.py
test/test_vxlan.py
test/test_vxlan_gbp.py