Module: check_mk
Branch: master
Commit: 999f53b1f8d1fd2f41222d0b88ab500997606654
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=999f53b1f8d1fd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 28 08:24:57 2019 +0100
Fix deprecation warning in test
Change-Id: I07e39ecca7af23f3d01cc5c3dc605142844409de
---
tests/unit/checks/test_f5_bigip_conns.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/checks/test_f5_bigip_conns.py
b/tests/unit/checks/test_f5_bigip_conns.py
index 94e5061..fe0c0ea 100644
--- a/tests/unit/checks/test_f5_bigip_conns.py
+++ b/tests/unit/checks/test_f5_bigip_conns.py
@@ -51,5 +51,5 @@ def test_get_conn_rate_params(check_manager, config, result):
"connections to use fixed levels."))])
def test_get_conn_rate_params_exception(check_manager, config, exception_msg):
check = check_manager.get_check("f5_bigip_conns")
- with pytest.raises(ValueError, message=exception_msg):
+ with pytest.raises(ValueError, match=exception_msg):
check.context["get_conn_rate_params"](config)