Skip to content
Snippets Groups Projects
Unverified Commit f5c79ba8 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

tests/bloom_bytes: define regexp as raw strings

Python strings for regular expression should be declared as `raw` so `\`
is not re-interpreted.

This fixes `flake8` warning.
parent bd77c1b1
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,10 @@ TIMEOUT = 150
def testfunc(child):
child.expect_exact("Testing Bloom filter.")
child.expect_exact("m: 4096 k: 8")
child.expect("adding 512 elements took \d+ms", timeout=TIMEOUT)
child.expect("checking 10000 elements took \d+ms", timeout=TIMEOUT)
child.expect("\d+ elements probably in the filter.")
child.expect("\d+ elements not in the filter.")
child.expect(r"adding 512 elements took \d+ms", timeout=TIMEOUT)
child.expect(r"checking 10000 elements took \d+ms", timeout=TIMEOUT)
child.expect(r"\d+ elements probably in the filter.")
child.expect(r"\d+ elements not in the filter.")
child.expect(".+ false positive rate.")
child.expect_exact("All done!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment