Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/e/l/eliot-0.3.0/eliot/tests/test_traceback.py   eliot(Download)
    Failure = None
 
from .._traceback import writeTraceback, writeFailure, _writeTracebackMessage
from ..testing import assertContainsFields, validateLogging
 
        except:
            exc_info = sys.exc_info()
        _writeTracebackMessage(logger, "sys", *exc_info)
        serialized = logger.serialize()[0]
        assertContainsFields(self, serialized,
        except BadException:
            exc_info = sys.exc_info()
        _writeTracebackMessage(logger, "sys", *exc_info)
        self.assertEqual(logger.serialize()[0]["reason"],
                         "eliot: unknown, unicode() raised exception")