Closed mrtyler closed 8 years ago
After changing buckets this still is a bug but manifests in a different way:
$ testify test --bucket=1
Traceback (most recent call last):
File "/home/anthony/workspace/Testify/venv/bin/testify", line 10, in <module>
execfile(__file__)
File "/home/anthony/workspace/Testify/bin/testify", line 25, in <module>
test_program.main()
File "/home/anthony/workspace/Testify/testify/test_program.py", line 339, in main
sys.exit(not TestProgram().run())
File "/home/anthony/workspace/Testify/testify/test_program.py", line 303, in run
return runner.run()
File "/home/anthony/workspace/Testify/testify/test_runner.py", line 164, in run
for test_case in self.discover():
File "/home/anthony/workspace/Testify/testify/test_runner.py", line 137, in discover
discovered_tests = discover_tests_by_buckets()
File "/home/anthony/workspace/Testify/testify/test_runner.py", line 118, in discover_tests_by_buckets
range(self.bucket_count) + list(reversed(range(self.bucket_count)))
TypeError: range() integer end argument expected, got NoneType.
Still reproduces
Via #328
While working on #206, I discovered this.
The offending code:
Called during discovery.
Not sure if it's related but another oddity that I'm not going to chase further is what happened when I provided a bucket-count: