Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_parser.py

Issue 29880555: Issue 6877 - Only parse headers in the first line of the filter list (Closed)
Patch Set: Created Sept. 14, 2018, 2:40 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « abp/filters/parser.py ('k') | tests/test_rpy.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_parser.py
===================================================================
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -160,7 +160,7 @@
def test_parse_bad_header():
with pytest.raises(ParseError):
- parse_line('[Adblock 1.1]')
+ next(parse_filterlist(['[Adblock 1.1]']))
def test_parse_filterlist():
« no previous file with comments | « abp/filters/parser.py ('k') | tests/test_rpy.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld