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

Unified Diff: tests/test_parser.py

Issue 30022565: Issue 7325 - Let the parser handle filters than begin and end with '%' (Closed) Base URL: https://hg.adblockplus.org/python-abp
Patch Set: Created March 5, 2019, 1:17 a.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
@@ -155,7 +155,7 @@
def test_parse_bad_instruction():
with pytest.raises(ParseError):
- parse_line('%foo bar%')
+ parse_line('%include%')
def test_parse_start():
@@ -216,7 +216,7 @@
def test_exception_timing():
- result = parse_filterlist(['! good line', '%bad line%'])
+ result = parse_filterlist(['! good line', '%includes bad%'])
assert next(result) == Comment('good line')
with pytest.raises(ParseError):
next(result)
« 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