Emanuel Barry added the comment:

`import` merely adds the imported module to the current namespace which, in 
your code, is some local (non-global) namespace. It is successfully imported 
but never used, and quickly falls out of scope.

You also check for `testplugin in sys.modules`, but you want `'testplugin' in 
sys.modules`. Closing this as not a bug, please reopen if there's indeed a bug 
I didn't spot.

----------
nosy: +ebarry
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27642>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to