Legacy API to run once through the event loop. This is the recommended pattern for test code. It will poll the selector once and run all callbacks scheduled in response to I/O events.
(loop)
| 107 | |
| 108 | |
| 109 | def run_once(loop): |
| 110 | """Legacy API to run once through the event loop. |
| 111 | |
| 112 | This is the recommended pattern for test code. It will poll the |
| 113 | selector once and run all callbacks scheduled in response to I/O |
| 114 | events. |
| 115 | """ |
| 116 | loop.call_soon(loop.stop) |
| 117 | loop.run_forever() |
| 118 | |
| 119 | |
| 120 | class SilentWSGIRequestHandler(WSGIRequestHandler): |
nothing calls this directly
no test coverage detected
searching dependent graphs…