[New-bugs-announce] [issue10548] Error in setUp not reported as expectedFailure (unittest)

Michael Foord report at bugs.python.org
Sat Nov 27 16:16:38 CET 2010


New submission from Michael Foord <michael at voidspace.org.uk>:

Reported by Konrad Delong.

class MyTest(unittest.TestCase):
    def setUp(self):
        raise Exception
    @unittest.expectedFailure
    def testSomething(self):
        assert False, "test method failed"




This code will report error, not expected failure.

----------
assignee: michael.foord
components: Library (Lib)
messages: 122530
nosy: michael.foord
priority: normal
severity: normal
status: open
title: Error in setUp not reported as expectedFailure (unittest)
type: behavior
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10548>
_______________________________________


More information about the New-bugs-announce mailing list