mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
#6814: remove traces of xrange().
This commit is contained in:
parent
a4c05a26a7
commit
c9a5a0e165
5 changed files with 8 additions and 11 deletions
|
@ -260,10 +260,7 @@ class IntegerCounting(Test):
|
|||
|
||||
# Run test rounds
|
||||
#
|
||||
# NOTE: Use xrange() for all test loops unless you want to face
|
||||
# a 20MB process !
|
||||
#
|
||||
for i in xrange(self.rounds):
|
||||
for i in range(self.rounds):
|
||||
|
||||
# Repeat the operations per round to raise the run-time
|
||||
# per operation significantly above the noise level of the
|
||||
|
@ -305,7 +302,7 @@ class IntegerCounting(Test):
|
|||
a = 1
|
||||
|
||||
# Run test rounds (without actually doing any operation)
|
||||
for i in xrange(self.rounds):
|
||||
for i in range(self.rounds):
|
||||
|
||||
# Skip the actual execution of the operations, since we
|
||||
# only want to measure the test's administration overhead.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue