Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 533 Bytes

multiple_loops.rst

File metadata and controls

10 lines (7 loc) · 533 Bytes

How to test with different event loops

Parametrizing the event_loop_policy fixture parametrizes all async tests. The following example causes all async tests to run multiple times, once for each event loop in the fixture parameters:

You may choose to limit the scope of the fixture to package, module, or class, if you only want a subset of your tests to run with different event loops.