From: "Chen, Lingli" <linglix.chen@intel.com>
To: dts@dpdk.org
Cc: "Chen, Lingli" <linglix.chen@intel.com>, Chen@dpdk.org
Subject: [dts] [PATCH V1] tests/TestSuite_pmdpcap:Switching python3 xrange is replaced by range
Date: Mon, 11 Jan 2021 14:07:26 +0000 [thread overview]
Message-ID: <20210111140726.22702-1-linglix.chen@intel.com> (raw)
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(-)
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
next reply other threads:[~2021-01-11 5:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-11 14:07 Chen, Lingli [this message]
2021-01-11 5:40 ` Chen, LingliX
2021-01-11 6:47 ` Zhao, HaiyangX
2021-01-13 8:48 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210111140726.22702-1-linglix.chen@intel.com \
--to=linglix.chen@intel.com \
--cc=Chen@dpdk.org \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).