From 42a346413bcfeaafda87276e8a17b3cc24fb6988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 2 Aug 2018 14:48:51 +0200 Subject: [PATCH] fix "re:" prefix for keyword tests --- test/test_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_results.py b/test/test_results.py index 95e414af..5525b86b 100644 --- a/test/test_results.py +++ b/test/test_results.py @@ -117,7 +117,7 @@ class TestExtractorResults(unittest.TestCase): continue elif isinstance(test, type): self.assertIsInstance(value, test) - elif isinstance(test, str) and value.startswith("re:"): + elif isinstance(test, str) and test.startswith("re:"): self.assertRegex(value, test[3:]) else: self.assertEqual(value, test)