Skip to content

router: drop stale RouterError from lm15.router.__all__ - #23

Open
harshitgavita-07 wants to merge 1 commit into
lm15-dev:mainfrom
harshitgavita-07:fix-router-all-routererror
Open

harshitgavita-07 wants to merge 1 commit into
lm15-dev:mainfrom
harshitgavita-07:fix-router-all-routererror

Conversation

@harshitgavita-07

Copy link
Copy Markdown

lm15/router.py's __all__ still lists RouterError, but the class was removed in 228775a ("router.py drops RouterError and the router code"). A star import of the module crashes:

>>> from lm15.router import *
Traceback (most recent call last):
AttributeError: module 'lm15.router' has no attribute 'RouterError'

This removes the stale entry and adds a regression test asserting every name in lm15.router.__all__ resolves.

Tests: tests/test_router.py passes (109 tests). The rest of the suite shows identical pre-existing conformance-fixture collection errors and failures with and without this change.

Commit 228775a removed the RouterError class when the router error codes
joined the vocabulary, but left the name in __all__. A star import of
lm15.router crashes:

    >>> from lm15.router import *
    AttributeError: module 'lm15.router' has no attribute 'RouterError'

Add a regression test that every name in lm15.router.__all__ resolves.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant