summaryrefslogtreecommitdiffstats
path: root/test/test_bier.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-21 18:59:11 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-10-21 17:55:13 +0000
commit22674295747965759806231c8e5beb4b1d7fa96a (patch)
tree4479a1a88b13a35d1b4708f05893cbafd70f3596 /test/test_bier.py
parent74dcbf97af4e55cb29932dad7d65472403c6006d (diff)
bier: tests support python3
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I3cf5295f1a85579a66ba38ca1f74678b45474959
Diffstat (limited to 'test/test_bier.py')
-rw-r--r--test/test_bier.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_bier.py b/test/test_bier.py
index 793c8ca0362..b188c364a7a 100644
--- a/test/test_bier.py
+++ b/test/test_bier.py
@@ -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)