MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_bytes_logging

Method test_bytes_logging

python/python3/tornado/test/log_test.py:88–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.assertEqual(self.get_output(), b"foo")
87
88 def test_bytes_logging(self):
89 with ignore_bytes_warning():
90 # This will be "\xe9" on python 2 or "b'\xe9'" on python 3
91 self.logger.error(b"\xe9")
92 self.assertEqual(self.get_output(), utf8(repr(b"\xe9")))
93
94 def test_utf8_logging(self):
95 with ignore_bytes_warning():

Callers

nothing calls this directly

Calls 4

get_outputMethod · 0.95
utf8Function · 0.90
ignore_bytes_warningFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected