test: guard import smoke test against vacuous pass on empty walk

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mathew Sir Guest the best 2026-05-30 23:36:52 -06:00
parent 1cf9a5e6c4
commit 6931e91391

@ -23,6 +23,8 @@ def test_all_submodules_import():
)
]
assert module_names, "walk_packages found no submodules - check smileyface.__path__"
for name in module_names:
try:
importlib.import_module(name)