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 jamesh
Recipients PiDelport, jamesh
Date 2008-04-11.06:26:20
SpamBayes Score 0.08159577
Marked as misclassified No
Message-id <1207895182.81.0.582320582814.issue2604@psf.upfronthosting.co.za>
In-reply-to
Content
Is repeating a test with the same TestCase instance ever safe?  It'd be
better to create a new instance and run that.

If any of the variables in test.globs are changed by the test (e.g.
appending to a list), then rerunning the test will not necessarily give
the same result.

While the zope change allows tests that have immutable globals or don't
change their globals to function, it also lets other tests "almost"
work, and could lead to new bugs that are difficult to track down.
History
Date User Action Args
2008-04-11 06:26:23jameshsetspambayes_score: 0.0815958 -> 0.08159577
recipients: + jamesh, PiDelport
2008-04-11 06:26:22jameshsetspambayes_score: 0.0815958 -> 0.0815958
messageid: <1207895182.81.0.582320582814.issue2604@psf.upfronthosting.co.za>
2008-04-11 06:26:21jameshlinkissue2604 messages
2008-04-11 06:26:20jameshcreate