BytesLogger implements methods of stdlib loggers.
(self, method)
| 286 | |
| 287 | @pytest.mark.parametrize("method", stdlib_log_methods) |
| 288 | def test_stdlib_methods_support(self, method): |
| 289 | """ |
| 290 | BytesLogger implements methods of stdlib loggers. |
| 291 | """ |
| 292 | sio = BytesIO() |
| 293 | |
| 294 | getattr(BytesLogger(sio), method)(b"hello") |
| 295 | |
| 296 | assert b"hello" in sio.getvalue() |
| 297 | |
| 298 | @pytest.mark.parametrize("file", [None, stdout.buffer, stderr.buffer]) |
| 299 | @pytest.mark.parametrize("proto", range(pickle.HIGHEST_PROTOCOL + 1)) |
nothing calls this directly
no test coverage detected