X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_bier.py;h=1c58ee58bd338a0972486ff997066f808915381e;hb=c87fbb417;hp=b188c364a7a753a186d8b16ca53cce8d56c2cdfa;hpb=22674295747965759806231c8e5beb4b1d7fa96a;p=vpp.git diff --git a/test/test_bier.py b/test/test_bier.py index b188c364a7a..1c58ee58bd3 100644 --- a/test/test_bier.py +++ b/test/test_bier.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest @@ -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)