Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-x chunk fails if the number of tests selected is equal to or greater than the source #7

Closed
GoogleCodeExporter opened this issue Apr 6, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

1. Run ./namebench.py -t10000 -xchunk 

Traceback (most recent call last):
  File "./namebench.py", line 182, in <module>
    bmark.CreateTestsFromFile(opt.data_file, select_mode=opt.select_mode)
  File "/data/home/tstromberg/namebench/lib/benchmark.py", line 114, in
CreateTestsFromFile
    return self.CreateTests(input_data, select_mode=select_mode)
  File "/data/home/tstromberg/namebench/lib/benchmark.py", line 136, in
CreateTests
    selected = ChunkSelect(input_data, self.test_count)
  File "/data/home/tstromberg/namebench/lib/benchmark.py", line 91, in
ChunkSelect
    start = random.randint(0, len(elements) - count)
  File "/usr/local/lib/python2.6/random.py", line 228, in randint
    return self.randrange(a, b+1)
  File "/usr/local/lib/python2.6/random.py", line 204, in randrange
    raise ValueError, "empty range for randrange() (%d,%d, %d)" % (istart,
istop, width)
ValueError: empty range for randrange() (0,-131, -131)


Original issue reported on code.google.com by thomas.r...@gmail.com on 1 Oct 2009 at 4:40

@GoogleCodeExporter
Copy link
Author

fixed in r131

Original comment by thomas.r...@gmail.com on 2 Oct 2009 at 9:28

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant