Files
sqlalchemy/tools/walk_packages.py
Mike Bayer d46dfd2e45 ensure all modules are importable without pytest harnesses
Fixed very old issue where the full extent of SQLAlchemy modules, including
``sqlalchemy.testing.fixtures``, could not be imported outside of a pytest
run. This suits inspection utilities such as ``pkgutil`` that attempt to
import all installed modules in all packages.

Fixes: #10321
Change-Id: Ic2247c59b98f462036ad0d734aef9a96f290d778
2023-09-07 18:05:25 -04:00

6 lines
111 B
Python

import pkgutil
import sqlalchemy
list(pkgutil.walk_packages(sqlalchemy.__path__, sqlalchemy.__name__ + "."))