From cfd84cc354c4fbcf9e1ba526d77cb5dbb3836f51 Mon Sep 17 00:00:00 2001 From: Cleber Rosa Date: Wed, 6 Mar 2019 13:35:08 -0500 Subject: [PATCH] Selftests: pin pylint and astroid version The pylint version in use requires a specific version (or a not so greater version) of astroid. When the astroid version is not pinned, astroid version 2.2.4 currently gets installed. Then, pylint (and thus inspektor) fails with: 'Import' object has no attribute 'infer_name_module' Let's bump the pylint version (already pinned) and pin a compatible astroid version too. Signed-off-by: Cleber Rosa --- requirements-selftests.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements-selftests.txt b/requirements-selftests.txt index c605526e..a708514a 100644 --- a/requirements-selftests.txt +++ b/requirements-selftests.txt @@ -4,7 +4,8 @@ Sphinx==1.7.8 # inspektor (static and style checks) pylint==1.9.3; python_version <= '2.7' -pylint==2.2.0; python_version >= '3.4' +pylint==2.3.0; python_version >= '3.4' +astroid==2.2.0; python_version >= '3.4' inspektor==0.5.2 # mock (some unittests use it) -- GitLab