binarydud/pyres — pull request #137 by dawncold (2014-05-24 13:09:45+00:00)
Title: same name of function and package, import job handler will encounter ImportError

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`