summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-07-28 13:43:45 -0700
committerMatt Clay <matt@mystile.com>2020-07-28 17:14:37 -0700
commit9c5663699f87072dc540a4bdde181b0f88a5f489 (patch)
treeaccf9efc717ad170d68df50e3f02eb63877bb94a
parenteb7597c5cbfa9021dd119d76edbee4c7775f1b32 (diff)
downloadansible-9c5663699f87072dc540a4bdde181b0f88a5f489.tar.gz
[stable-2.8] Cap pytest version to avoid relative import issue.
(cherry picked from commit 3a8ac62596f2698f768450ab1cd189eca442bd77) Co-authored-by: Matt Clay <matt@mystile.com>
-rw-r--r--changelogs/fragments/ansible-test-pytest-cap.yml2
-rw-r--r--test/runner/requirements/constraints.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/changelogs/fragments/ansible-test-pytest-cap.yml b/changelogs/fragments/ansible-test-pytest-cap.yml
new file mode 100644
index 0000000000..42457aa0e5
--- /dev/null
+++ b/changelogs/fragments/ansible-test-pytest-cap.yml
@@ -0,0 +1,2 @@
+bugfixes:
+ - ansible-test - Add ``pytest < 6.0.0`` constraint for managed installations on Python 3.x to avoid issues with relative imports.
diff --git a/test/runner/requirements/constraints.txt b/test/runner/requirements/constraints.txt
index 153db06ed6..b83be64e0e 100644
--- a/test/runner/requirements/constraints.txt
+++ b/test/runner/requirements/constraints.txt
@@ -17,6 +17,7 @@ paramiko < 2.4.0 ; python_version < '2.7' # paramiko 2.4.0 drops support for pyt
paramiko < 2.5.0 ; python_version >= '2.7' # paramiko 2.5.0 requires cryptography 2.5.0+
pytest < 3.3.0 ; python_version < '2.7' # pytest 3.3.0 drops support for python 2.6
pytest < 5.0.0 ; python_version == '2.7' # pytest 5.0.0 and later will no longer support python 2.7
+pytest < 6.0.0 ; python_version > '2.7' # pytest 6.0.0 and later have issues with relative imports (further investigation required)
pytest-forked < 1.0.2 ; python_version < '2.7' # pytest-forked 1.0.2 and later require python 2.7 or later
pytest-forked >= 1.0.2 ; python_version >= '2.7' # pytest-forked before 1.0.2 does not work with pytest 4.2.0+ (which requires python 2.7+)
ntlm-auth >= 1.0.6 # message encryption support