--stop is inclusive ("Last query output entry to retrieve")

This commit is contained in:
Miroslav Stampar 2011-06-21 18:08:33 +00:00
parent dfc02d8c3c
commit 3536320fc9
2 changed files with 4 additions and 4 deletions

View File

@ -320,8 +320,8 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
try:
threadData = getCurrentThreadData()
numThreads = min(conf.threads, stopLimit-startLimit)
threadData.shared.limits = range(startLimit, stopLimit)
threadData.shared.limits = range(startLimit, stopLimit+1)
numThreads = min(conf.threads, len(threadData.shared.limits))
threadData.shared.outputs = []
if stopLimit > TURN_OFF_RESUME_INFO_LIMIT:

View File

@ -261,8 +261,8 @@ def unionUse(expression, unpack=True, dump=False):
try:
threadData = getCurrentThreadData()
numThreads = min(conf.threads, stopLimit-startLimit)
threadData.shared.limits = range(startLimit, stopLimit)
threadData.shared.limits = range(startLimit, stopLimit+1)
numThreads = min(conf.threads, len(threadData.shared.limits))
threadData.shared.value = ""
if stopLimit > TURN_OFF_RESUME_INFO_LIMIT: