From 642f5e48098c42011e948f2a51bdea09056c8da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de> Date: Thu, 21 Feb 2019 16:19:47 +0100 Subject: [PATCH] tests/bloom_bytes: explicitely expect a float The last line should be a float lower than 1 so 0.XXX. So expect it to match this. This should prevent issues when float printing does not work. --- tests/bloom_bytes/tests/01-run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bloom_bytes/tests/01-run.py b/tests/bloom_bytes/tests/01-run.py index 5e3632a5c9..8847fad589 100755 --- a/tests/bloom_bytes/tests/01-run.py +++ b/tests/bloom_bytes/tests/01-run.py @@ -20,7 +20,7 @@ def testfunc(child): 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(r"0\.\d+ false positive rate.") child.expect_exact("All done!") -- GitLab