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 georg.brandl
Recipients Indy, exarkun, georg.brandl
Date 2009-04-05.13:31:24
SpamBayes Score 1.8212775e-08
Marked as misclassified No
Message-id <1238938286.08.0.391927598039.issue5533@psf.upfronthosting.co.za>
In-reply-to
Content
Your script is flawed in two parts:

* it doesn't filter the return value of listdir(), which leads to each
test being executed twice in the presence of .pyc files

* __import__("foo.bar") does *not* return the foo.bar submodule, but the
foo module.

But that is all not relevant because your run_tests is not even called
if unittest finds command line arguments that give test names. See
unittest.TestProgram.parseArgs.
History
Date User Action Args
2009-04-05 13:31:26georg.brandlsetrecipients: + georg.brandl, exarkun, Indy
2009-04-05 13:31:26georg.brandlsetmessageid: <1238938286.08.0.391927598039.issue5533@psf.upfronthosting.co.za>
2009-04-05 13:31:25georg.brandllinkissue5533 messages
2009-04-05 13:31:24georg.brandlcreate