Module: check_mk
Branch: master
Commit: 091e209b5401bcd910bbcd3a8c914ffda15b935c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=091e209b5401bc…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Thu Feb 21 10:37:42 2019 +0100
test_mk_docker.py: strip c from source file name
Change-Id: I66251fdbbc3cfeaf016fa335e339d50e0ff47797
---
tests/unit/plugins/test_mk_docker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/unit/plugins/test_mk_docker.py b/tests/unit/plugins/test_mk_docker.py
index 590ec85..af740ad 100644
--- a/tests/unit/plugins/test_mk_docker.py
+++ b/tests/unit/plugins/test_mk_docker.py
@@ -16,7 +16,7 @@ PLUGIN_CHECKSUMS = {
def test_docker_plugin_version():
- with open(mk_docker.__file__) as source:
+ with open(mk_docker.__file__.rstrip('c')) as source:
md5 = hashlib.md5(source.read()).hexdigest()
assert md5 == PLUGIN_CHECKSUMS.get(mk_docker.VERSION), """
Plugin source code has changed.