-
Type:
Task
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Python Drivers
-
Not Needed
-
-
None
-
None
-
None
-
None
-
None
-
None
Context
In PYTHON-4781 we added an import guard for the case where asyncio wasn't available on the system. However, asyncio imports have shown up in other files, and it turns out there was another fix needed on our end: GODRIVER-3371. For more context, system environment variables are required on Windows ([python/cpython#118234|https://github.com/python/cpython/issues/118234). We can't support overriding env when importing pymongo from in a subprocess, because it is a limitation of CPython.
Definition of done
Remove the import guard.