summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Weiser <michael.weiser@gmx.de>2019-04-24 09:55:22 +0000
committerMichael Weiser <michael.weiser@gmx.de>2019-04-25 12:20:20 +0000
commit211effe9ae3d71665eb7f45e108345e8e21c5dc5 (patch)
tree058af0fb89baf52a91636e5af595aa8baae2ba29
parent0f63a3d8e347b7e81215d334d21ff533a56a9ad2 (diff)
Fix test regex for python3
TypeError messages use quotes in python3 which need to be matched in our test.
-rwxr-xr-xtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 0312528..8321ac7 100755
--- a/test.py
+++ b/test.py
@@ -644,7 +644,7 @@ rule.1: cuckoo_score
higher_than: foo''')
with self.assertRaisesRegexp(
ValueError,
- r'could not convert string to float: foo'):
+ r"could not convert string to float: '?foo'?"):
RulesetEngine(ruleset_config=config, db_con=None)
def test_disabled_config(self):