diff options
author | Matt Clay <mclay@redhat.com> | 2021-01-25 12:37:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 12:37:25 -0800 |
commit | 8d31c4426b65aa28b5dc7ca16ae4758491239c0d (patch) | |
tree | 7d03b6c7b3c58e54ee4410633a46d8d76594ddc4 | |
parent | 7339b9d9cff2b6609848783d57faa76aa35471e8 (diff) | |
download | ansible-8d31c4426b65aa28b5dc7ca16ae4758491239c0d.tar.gz |
[stable-2.9] Update ansible-test pylint Python support. (#72972) (#73355)
* [stable-2.9] Update ansible-test pylint Python support. (#72972)
* Update ansible-test pylint Python support.
* Python 3.8 is now officially supported.
(cherry picked from commit 37d09f24882c1f03be9900e610d53587cfa6bbd6)
3 files changed, 6 insertions, 4 deletions
diff --git a/changelogs/fragments/ansible-test-pylint-python-3.8.yml b/changelogs/fragments/ansible-test-pylint-python-3.8.yml new file mode 100644 index 0000000000..d2ddc2a3b2 --- /dev/null +++ b/changelogs/fragments/ansible-test-pylint-python-3.8.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-test - The ``pylint`` sanity test is now supported on Python 3.8. diff --git a/test/lib/ansible_test/_data/requirements/constraints.txt b/test/lib/ansible_test/_data/requirements/constraints.txt index da96db3481..a9d8653e8d 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -42,10 +42,10 @@ setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require pyth cffi != 1.14.4 # Fails on systems with older gcc. Should be fixed in the next release. https://foss.heptapod.net/pypy/cffi/-/issues/480 # freeze pylint and its requirements for consistent test results -astroid == 2.2.5 +astroid == 2.3.3 isort == 4.3.15 -lazy-object-proxy == 1.3.1 +lazy-object-proxy == 1.4.3 mccabe == 0.6.1 pylint == 2.3.1 -typed-ast == 1.4.0 # 1.4.0 is required to compile on Python 3.8 +typed-ast == 1.4.1 wrapt == 1.11.1 diff --git a/test/lib/ansible_test/_data/sanity/pylint/plugins/blacklist.py b/test/lib/ansible_test/_data/sanity/pylint/plugins/blacklist.py index 8adffe81f6..ab22cf560b 100644 --- a/test/lib/ansible_test/_data/sanity/pylint/plugins/blacklist.py +++ b/test/lib/ansible_test/_data/sanity/pylint/plugins/blacklist.py @@ -25,7 +25,7 @@ class BlacklistEntry: """ self.alternative = alternative self.modules_only = modules_only - self.names = set(names) if names else None + self.names = set(names) if names else set() self.ignore_paths = ignore_paths def applies_to(self, path, name=None): |