Message85490
| 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:26 | georg.brandl | set | recipients: + georg.brandl, exarkun, Indy |
| 2009-04-05 13:31:26 | georg.brandl | set | messageid: <1238938286.08.0.391927598039.issue5533@psf.upfronthosting.co.za> |
| 2009-04-05 13:31:25 | georg.brandl | link | issue5533 messages |
| 2009-04-05 13:31:24 | georg.brandl | create | |