(fileobj, pattern)
| 157 | |
| 158 | @pytest.mark.parametrize("pattern", [object(), 123, dict]) |
| 159 | def test_invalid_pattern(fileobj, pattern): |
| 160 | with pytest.raises(TypeError): |
| 161 | next(logger.parse(fileobj, pattern)) |
| 162 | |
| 163 | |
| 164 | @pytest.mark.parametrize("cast", [object(), 123]) |