'Test error report for blockingCallFromThread.'

def test_errorBlockingCallFromThread(self):

    def reactorFunc():
        return defer.fail(RuntimeError('bar'))
    def cb(res):
        self.assertIsInstance(res[1][0], RuntimeError)
        self.assertEqual(res[1][0].args[0], 'bar')
    return self._testBlockingCallFromThread(reactorFunc).addCallback(cb)
