New submission from Michael Foord <mich...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10548>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to