File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -528,14 +528,9 @@ def test_sse_factory_proxy_precedence(self):
528528
529529class TestImportSafety :
530530 def test_import_ldclient_does_not_require_aiohttp (self ):
531- """A bare ``import ldclient`` must not import aiohttp.
532-
533- aiohttp is an optional dependency (the ``async`` extra), so sync-only
534- installs do not have it. The async code keeps its aiohttp-importing
535- pieces (the async client and HTTP transport) off the eager import path.
536- ``import ldclient`` also loads ``ldclient.migrations``, so this covers
537- the async migration surface too. A fresh interpreter is used so the
538- result is not affected by other tests that already imported aiohttp.
531+ """A bare ``import ldclient`` must not import anything that requires an
532+ optional dependency. aiohttp (the ``async`` extra) is optional, so a
533+ sync-only install must still be able to import ldclient.
539534 """
540535 code = "import ldclient, sys; sys.exit(1 if 'aiohttp' in sys.modules else 0)"
541536 result = subprocess .run (
You can’t perform that action at this time.
0 commit comments