summaryrefslogtreecommitdiff
path: root/test/py
diff options
context:
space:
mode:
Diffstat (limited to 'test/py')
-rwxr-xr-xtest/py/unittests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/py/unittests.py b/test/py/unittests.py
index 9adc4337..6dea80fc 100755
--- a/test/py/unittests.py
+++ b/test/py/unittests.py
@@ -207,9 +207,16 @@ class SimpleCaptureMethods(CameraTesterBase):
reqs = None
gc.collect()
+ sel = selectors.DefaultSelector()
+ sel.register(cm.event_fd, selectors.EVENT_READ)
+
reqs = []
while True:
+ events = sel.select()
+ if not events:
+ continue
+
ready_reqs = cm.get_ready_requests()
reqs += ready_reqs