HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
349 stars 52 forks source link

Using with aiohttp.test_utils.AioHTTPTestCase #76

Closed konstunn closed 4 years ago

konstunn commented 4 years ago

When running AioHTTPTestCase there is no event loop assigned to the main thread.

Is it compulsory in this case to call asyncio.set_event_loop(loop) to use arsenic, or is there a way to pass the loop to arsenic explicitly?

konstunn commented 4 years ago

I have found out that it is not compulsory to call asyncio.set_event_loop(loop) starting from Python 3.6.

I was trying to backport arsenic to Python 3.5, that is why I had this problem. Don't know the exact reason, though. Obviously, the deal is in the Python version.