[TIP] Best way to do setup/teardown on a per-test basis using doctest?
Benji York
benji at benjiyork.com
Tue Jul 3 11:38:12 PDT 2007
Brett Cannon wrote:
>> One approach would be to create a temporary
>> directory in your test setup file and pass that into the doctest (in the
>> globals). You could then have a tear down function that removes the
>> directory when done.
>
> At the test file level for the teardown, right?
Right.
--
Benji York
http://benjiyork.com
More information about the testing-in-python
mailing list