Skip to content

Commit abdef4c

Browse files
author
Jan-Philipp Litza
committed
tests: Modify regex test to expose too broad replacement
1 parent beab328 commit abdef4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ def test_column(line, columns, expected):
133133
"line,regex,expected,replace",
134134
[
135135
(
136-
'3.3.3.3 - - [20/May/2015:21:05:01 +0000] "GET / HTTP/1.1" 200 13358 "-" "useragent"',
136+
'3.3.3.3 - - [20/May/2015:21:05:01 +0000] "GET /723.3.3.357 HTTP/1.1" 200 13358 "-" "useragent"',
137137
re.compile(
138138
r"(?:^([^,]+) - - |.* - somefixedstring: ([^,]+) - .* - ([^,]+))"
139139
),
140-
'3.3.0.0 - - [20/May/2015:21:05:01 +0000] "GET / HTTP/1.1" 200 13358 "-" "useragent"',
140+
'3.3.0.0 - - [20/May/2015:21:05:01 +0000] "GET /723.3.3.357 HTTP/1.1" 200 13358 "-" "useragent"',
141141
None,
142142
),
143143
(

0 commit comments

Comments
 (0)