>>>>> "Fredrik" == Fredrik Lundh <[EMAIL PROTECTED]> writes:

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

    Fredrik>     unittest.FailingTestCase

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

One can do even better than that.  unittest.FailingTestCase should
(except possibly for platform dependencies) know _how_ the TestCase is
expected to fail.  You also want to know if the error changes.


-- 
Graduate School of Systems and Information Engineering   University of Tsukuba
http://turnbull.sk.tsukuba.ac.jp/        Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
        Economics of Information Communication and Computation Systems
          Experimental Economics, Microeconomic Theory, Game Theory
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to