Commit Graph

5 Commits

Author SHA1 Message Date
Yury Selivanov 5f48dab8fa tests: Support 3.8 2019-10-24 14:42:54 -04:00
Yury Selivanov eb8d7ba170 tests: Stop passing loop explicitly in tests
In 3.8 a lot of asyncio functions have their `loop` parameter
deprecated.  So we change the semantics of uvloop tests to never
pass the loop explicitly (unless to Future objects, when necessary)

That means that we now also need to set up asyncio/uvloop loop policies
for tests in setUp hooks.
2019-10-24 14:42:54 -04:00
Yury Selivanov 57a3abe515 tests: Do set_event_loop(None) in unittests
uvloop should consistently pass around the loop reference in its
internal APIs.

Even though explicit passing of event loop objects is discouraged
in asyncio programs, uvloop itself is too low-level to rely on
get_event_loop.
2016-11-07 19:27:37 -05:00
Yury Selivanov 53203bf3e1 tests: Add an extra await to the process executor test 2016-07-27 14:01:41 -04:00
Yury Selivanov ad5181b36a tests: Add tests for process/thread pool executors 2016-07-27 13:55:55 -04:00