From a951e007df37a3464ab45848faa13c6987bd69fc Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 13 Jan 2020 14:35:34 -0800 Subject: [PATCH] [stable-2.9] Ignore warnings in ansible-test environment check. (cherry picked from commit 3db1ac4f56cfd781bc531c5223c7fe748994c588) Co-authored-by: Matt Clay --- changelogs/fragments/ansible-test-ignore-pip-warnings.yml | 2 ++ test/lib/ansible_test/_data/versions.py | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/ansible-test-ignore-pip-warnings.yml diff --git a/changelogs/fragments/ansible-test-ignore-pip-warnings.yml b/changelogs/fragments/ansible-test-ignore-pip-warnings.yml new file mode 100644 index 00000000000..e78aca3b195 --- /dev/null +++ b/changelogs/fragments/ansible-test-ignore-pip-warnings.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test now ignores warnings when comparing pip versions before and after integration tests run diff --git a/test/lib/ansible_test/_data/versions.py b/test/lib/ansible_test/_data/versions.py index 06729720ed6..4babef01623 100755 --- a/test/lib/ansible_test/_data/versions.py +++ b/test/lib/ansible_test/_data/versions.py @@ -5,6 +5,9 @@ __metaclass__ = type import os import sys +import warnings + +warnings.simplefilter('ignore') # avoid python version deprecation warnings when using newer pip dependencies try: import pip