Message103150
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. |
|
Date |
User |
Action |
Args |
2010-04-14 21:37:23 | ncoghlan | set | recipients:
+ ncoghlan, skip.montanaro, brett.cannon, eric.araujo |
2010-04-14 21:37:23 | ncoghlan | set | messageid: <1271281043.71.0.582907735558.issue8392@psf.upfronthosting.co.za> |
2010-04-14 21:37:21 | ncoghlan | link | issue8392 messages |
2010-04-14 21:37:21 | ncoghlan | create | |
|