Nick Coghlan <ncogh...@gmail.com> added the comment:

Yep, this is the right sort of thing to kick in our direction.

There's a reasonable amount of implicit testing of import's level argument 
through the relative import tests in test_import and test_runpy, but some 
explicit tests of direct invocation can't hurt.

As Skip says, the test suite can serve as useful example code, although I 
couldn't recommend that it *all* be treated that way - we do some pretty weird 
stuff at times in an effort to stress the code under test or to isolate test 
cases from each other.

----------

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

Reply via email to