AK <andrei....@gmail.com> writes:

> Hi, I have a question about unittest: let's say I create a temp dir
> for my tests, then use loadTestsFromNames() to load my tests from
> packages and modules they're in, then use TextTestRunner.run() to run
> the tests, how can I pass information to TestCase instances, e.g. the
> location of the temp dir I created?

Have it available from outside the TestCase child classes. Either as a
module-level global, or imported from some other module.

-- 
 \       Moriarty: “Forty thousand million billion dollars? That money |
  `\            must be worth a fortune!” —The Goon Show, _The Sale of |
_o__)                                                       Manhattan_ |
Ben Finney
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to