diff mbox series

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

Message ID 20210111140726.22702-1-linglix.chen@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/TestSuite_pmdpcap:Switching python3 xrange is replaced by range | expand

Commit Message

Chen, LingliX Jan. 11, 2021, 2:07 p.m. UTC
Switching python3 xrange is replaced by range

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

Comments

Chen, LingliX Jan. 11, 2021, 5:40 a.m. UTC | #1
Tested-by:  Chen, LingliX <linglix.chen@intel.com>

Regards,
Chen, LingliX

> -----Original Message-----
> From: Chen, Lingli [mailto:linglix.chen@intel.com]
> Sent: Monday, January 11, 2021 10:07 PM
> To: dts@dpdk.org
> Cc: Chen, LingliX <linglix.chen@intel.com>; Chen
> Subject: [dts][PATCH V1] tests/TestSuite_pmdpcap:Switching python3 xrange
> is replaced by range
Zhao, HaiyangX Jan. 11, 2021, 6:47 a.m. UTC | #2
Acked-by: Haiyang Zhao <haiyangx.zhao@intel.com>

Best Regards,
Zhao Haiyang

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Chen, LingliX
> Sent: Monday, January 11, 2021 13:40
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/TestSuite_pmdpcap:Switching python3
> xrange is replaced by range
Lijuan Tu Jan. 13, 2021, 8:48 a.m. UTC | #3
> Subject: [dts] [PATCH V1] tests/TestSuite_pmdpcap:Switching python3 xrange
> is replaced by range
> 
> Switching python3 xrange is replaced by range
> 
> Signed-off-by: Chen, Lingli <linglix.chen@intel.com>

Applied, hope the subject is " tests/pmdpcap: switching python3 xrange is replaced by range" next time.
diff mbox series

Patch

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()', '# ')