You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bokeh relies on Tornado which is incompatible with the default Proactor event loop on Windows starting with Python 3.8.
Accordingly, we call this function
def fixup_windows_event_loop_policy() -> None:
if sys.platform == 'win32' and sys.version_info[:3] >= (3, 8, 0):
import asyncio
if type(asyncio.get_event_loop_policy()) is asyncio.WindowsProactorEventLoopPolicy:
# WindowsProactorEventLoopPolicy is not compatible with tornado 6
# fallback to the pre-3.8 default of WindowsSelectorEventLoopPolicy
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
in any module that will need to use tornado. Since 0.14 became available, all our Tornado tests are failing, because the Proactor loop is being used in tests even despite our explicit event loop policy selection:
Closing/labeling is a function for maintainers (I don't have permissions to apply any"dupe" label, etc). In any case it seems plausible that that issue is a duplicate, though I am not 100% certain and also the discussion there seems to be veering towards offering explicit loop policy selection via a per-test fixture. That would not be a workable solution for us, we need the configured choice that the library itself makes be respected (as it should be, by default)
Bokeh relies on Tornado which is incompatible with the default Proactor event loop on Windows starting with Python 3.8.
Accordingly, we call this function
in any module that will need to use tornado. Since 0.14 became available, all our Tornado tests are failing, because the Proactor loop is being used in tests even despite our explicit event loop policy selection:
Is this intentional? is there some new way we should configure pytest-asyncio to be able to not override our policy selection?
ref: bokeh/bokeh#10514
The text was updated successfully, but these errors were encountered: