(self)
| 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(): |
nothing calls this directly
no test coverage detected