py: unittests: Fix test_select()
The test_select() currently uses self.assertTrue(len(ready_reqs) > 0) to see that cm.get_ready_requests() returns something. This is not always the case, as there may be two eventfd events queued, and the first call to cm.get_ready_requests() returns all the requests, and thus the second call returns none. Remove the self.assertTrue(len(ready_reqs) > 0) assert. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
9f5b790800
commit
679b73640a
1 changed files with 0 additions and 2 deletions
|
@ -287,8 +287,6 @@ class SimpleCaptureMethods(CameraTesterBase):
|
||||||
|
|
||||||
ready_reqs = cm.get_ready_requests()
|
ready_reqs = cm.get_ready_requests()
|
||||||
|
|
||||||
self.assertTrue(len(ready_reqs) > 0)
|
|
||||||
|
|
||||||
reqs += ready_reqs
|
reqs += ready_reqs
|
||||||
|
|
||||||
if len(reqs) == num_bufs:
|
if len(reqs) == num_bufs:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue