Failing expectThat does not fail AsynchronousDeferredRunTest

Bug #1532452 reported by Jonathan Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
testtools
Fix Released
Critical
Jonathan Lange

Bug Description

expectThat won't fail tests AsynchronousDeferredRunTest

Minimal example:

```python
from testtools import TestCase
from testtools.deferredruntest import AsynchronousDeferredRunTest
from testtools.matchers import Is

class FooTests(TestCase):

    run_tests_with = AsynchronousDeferredRunTest

    def test_something(self):
        self.expectThat(object(), Is(object()))

if __name__ == '__main__':
    import unittest
    unittest.main()
```

This succeed, where it should fail.

Jonathan Lange (jml)
Changed in testtools:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Jonathan Lange (jml)
Jonathan Lange (jml)
Changed in testtools:
status: In Progress → Fix Committed
milestone: none → next
Jonathan Lange (jml)
Changed in testtools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.