def __init__(self, action, etime, raw_message, fargs, exc_info): self.action = action self.etime = etime self.event_id = next(_ACT_ID_ITER) self.raw_message = to_unicode(raw_message) self.fargs = fargs self.exc_info = exc_info
def test_to_unicode_doesnt_throw(): to_unicode('hi') to_unicode('') to_unicode('\x81')