This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients brett.cannon, eric.araujo, ncoghlan, skip.montanaro
Date 2010-04-14.21:37:21
SpamBayes Score 8.730743e-05
Marked as misclassified No
Message-id <1271281043.71.0.582907735558.issue8392@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-04-14 21:37:23ncoghlansetrecipients: + ncoghlan, skip.montanaro, brett.cannon, eric.araujo
2010-04-14 21:37:23ncoghlansetmessageid: <1271281043.71.0.582907735558.issue8392@psf.upfronthosting.co.za>
2010-04-14 21:37:21ncoghlanlinkissue8392 messages
2010-04-14 21:37:21ncoghlancreate