[dts] [PATCH V1] tests/TestSuite_pmdpcap:Switching python3 xrange is replaced by range

Chen, Lingli linglix.chen at intel.com
Mon Jan 11 15:07:26 CET 2021


Switching python3 xrange is replaced by range

Signed-off-by: Chen, Lingli <linglix.chen at intel.com>
---
 tests/TestSuite_pmdpcap.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_pmdpcap.py b/tests/TestSuite_pmdpcap.py
index ed41082e..0913e9bf 100644
--- a/tests/TestSuite_pmdpcap.py
+++ b/tests/TestSuite_pmdpcap.py
@@ -113,7 +113,7 @@ class TestPmdPcap(TestCase):
         self.dut.send_expect('input=rdpcap("%s")' % in_pcap, '>>> ')
         self.dut.send_expect('output=rdpcap("%s")' % out_pcap, '>>> ')
         self.dut.send_expect(
-            'result=[input[i]==output[i] for i in xrange(len(input))]', '>>> ')
+            'result=[input[i]==output[i] for i in range(len(input))]', '>>> ')
         result = self.dut.send_expect('False in result', '>>> ')
         self.dut.send_expect('quit()', '# ')
 
-- 
2.17.1



More information about the dts mailing list