Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

same name of function and package, import job handler will encounter ImportError #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dawncold
Copy link

my_import will walk job handler's module path from head to tail, but if a function exposed by a package, with the same name of package, it will get the function instead of module.

this test makes a job handler called b, and its __module__ is tests.a.a, also a function named a exposed by package a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant