[New-bugs-announce] [issue4899] doctest should support fixtures

Giovanni report at bugs.python.org
Fri Jan 9 17:19:00 CET 2009

New submission from Giovanni <dalloliogm at gmail.com>:

The doctest module should have support for fixtures (e.g. setUp and
tearDown methods).

It is very silly to be forced to always re-import all the modules needed
in every function tested with doctest.
For example, when you have to document functions that open files, you
have to import StringIO or TempFile, and then create a file, while this
could be done easily with a fixture.

components: Tests
messages: 79477
nosy: dalloliogm
severity: normal
status: open
title: doctest should support fixtures
type: feature request

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list