Michael Foord wrote:
On 3 Aug 2011, at 21:36, Ethan Furman wrote:
My apologies for posting here first, but I'm not yet confident enough in my bug 
searching fu, and duplicates are a pain.

Here's the issue:

from unittest import *

That's the bug right there. Just import TestCase and main and everything should work 
fine. Using "import *" is not recommended except at the interactive interpreter 
and it doesn't play well with unittest.main which does magic introspection to find tests 
to run.

If from xxx import * is not supported, why provide __all__? At the very least the lack of a warning is a documentation bug.

~Ethan~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to