bier: tests support python3

Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I3cf5295f1a85579a66ba38ca1f74678b45474959
This commit is contained in:
Ole Troan
2019-10-21 18:59:11 +02:00
committed by Andrew Yourtchenko
parent 74dcbf97af
commit 2267429574
2 changed files with 10 additions and 9 deletions

View File

@ -167,7 +167,7 @@ class TestBier(VppTestCase):
byte_val = scapy.compat.chb(1 << (bp - 1) % 8)
byte_pos = n_bytes - (((bp - 1) // 8) + 1)
byte_array[byte_pos] = byte_val
bitstring = ''.join([scapy.compat.chb(x) for x in byte_array])
bitstring = b''.join([scapy.compat.chb(x) for x in byte_array])
self.assertEqual(len(bitstring), len(bier_hdr.BitString))
self.assertEqual(bitstring, bier_hdr.BitString)