[issue15551] Unit tests that return generators silently fail

Jason Baker report at bugs.python.org
Fri Aug 3 20:08:18 CEST 2012


New submission from Jason Baker:

The following test will pass silently:


    class SomeTest(unittest.TestCase):

      def testSomething(self):
        yield 1
        self.fail()

----------
components: None
messages: 167340
nosy: Jason.Baker
priority: normal
severity: normal
status: open
title: Unit tests that return generators silently fail
versions: Python 2.7

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


More information about the Python-bugs-list mailing list