Logic of nova-cells test case 'test_cells_scheduler.test_filter_schedule_skipping' is odd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Wenzhi Yu |
Bug Description
Logic of nova-cells test case 'nova.tests.
def test_filter_
# if a filter handles scheduling, short circuit
def _grab(filter_
return None
self.stubs.
def _test(self, *args):
raise test.TestingExc
try:
self.
None)
except test.TestingExc
self.
It uses a try-except block to ensure that '_test()' function will not be called during case execution, which is odd and poorly readable.
Changed in nova: | |
assignee: | nobody → Wenzhi Yu (yuywz) |
description: | updated |
description: | updated |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
status: | Invalid → In Progress |
Changed in nova: | |
status: | In Progress → Invalid |
Gerrit code review: https:/ /review. openstack. org/#/c/ 285146/