X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_bier.py;h=1c58ee58bd338a0972486ff997066f808915381e;hb=5d4b8912d2fe186b4fb920a72b3a2f7b556f4e7d;hp=b02014daa337af6df7af26fbdd180ed3c05b3fd3;hpb=aa72578637e2a346ee845545b2e26aad83e12192;p=vpp.git diff --git a/test/test_bier.py b/test/test_bier.py index b02014daa33..1c58ee58bd3 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 = b''.join([scapy.compat.chb(x) for x in byte_array]) + bitstring = b''.join(byte_array) self.assertEqual(len(bitstring), len(bier_hdr.BitString)) self.assertEqual(bitstring, bier_hdr.BitString)