Skip to content

Commit f8a06a6

Browse files
committed
docs: Trim the import-safety test docstring
1 parent 916196a commit f8a06a6

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

ldclient/testing/test_aio.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -528,14 +528,9 @@ def test_sse_factory_proxy_precedence(self):
528528

529529
class 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(

0 commit comments

Comments
 (0)