Index: tests/test_parser.py |
=================================================================== |
--- a/tests/test_parser.py |
+++ b/tests/test_parser.py |
@@ -155,8 +155,13 @@ |
assert list(result) == [Comment('foo'), Metadata('Title', 'bar')] |
def test_exception_timing(): |
result = parse_filterlist(['! good line', '%bad line%']) |
assert next(result) == Comment('good line') |
with pytest.raises(ParseError): |
next(result) |
+ |
+ |
+def test_parse_line_bytes(): |
+ line = parse_line(b'! \xc3\xbc') |
+ assert line.text == '\xfc' |