[Python-Dev] Checking in a broken test was: Re: [Python-checkins]r41940 (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Sun Jan 8 18:19:19 CET 2006


Fredrik Lundh wrote:

many test frameworks support "expected failures" for this purpose. how hard would it be to add a

unittest.FailingTestCase class that runs a TestCase, catches any errors in it, and signals an error ("test foo passed unexpectedly") if it runs cleanly ?

I don't know how hard it would be, but I would also consider this appropriate. Of course, this should work on a case-by-case basis: if there are multiple test methods in a class, unexpected passes of each method should be reported.

Regards, Martin



More information about the Python-Dev mailing list