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 PiDelport
Recipients PiDelport, jamesh
Date 2008-04-11.10:29:02
SpamBayes Score 0.0012013485
Marked as misclassified No
Message-id <1207909743.8.0.199703687958.issue2604@psf.upfronthosting.co.za>
In-reply-to
Content
Well, whether that code is wrong depends on whether your project policy
wants repeatable tests or not.  A repeatable and arguably more idiomatic
way of writing that example is to give DocFileSuite a setUp function
which initializes any special globals required by the test.

In any case, DocTestCase allowing non-repeatable tests (which i don't
think are common) is no reason to disallow repeatable tests, which e.g.
at least Zope considers important enough to motivate fixing this issue.
 (Zope is also the source of the code being fixed, if i'm not mistaken.)
History
Date User Action Args
2008-04-11 10:29:04PiDelportsetspambayes_score: 0.00120135 -> 0.0012013485
recipients: + PiDelport, jamesh
2008-04-11 10:29:03PiDelportsetspambayes_score: 0.00120135 -> 0.00120135
messageid: <1207909743.8.0.199703687958.issue2604@psf.upfronthosting.co.za>
2008-04-11 10:29:03PiDelportlinkissue2604 messages
2008-04-11 10:29:02PiDelportcreate