summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_internal/executor.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/ansible_test/_internal/executor.py')
-rw-r--r--test/lib/ansible_test/_internal/executor.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/executor.py b/test/lib/ansible_test/_internal/executor.py
index 912e5ae255..8fa18c5326 100644
--- a/test/lib/ansible_test/_internal/executor.py
+++ b/test/lib/ansible_test/_internal/executor.py
@@ -312,7 +312,12 @@ def get_cryptography_requirements(args, python, python_version): # type: (Envir
# pyopenssl 17.5.0 requires cryptography 2.1.4 or later
pyopenssl = 'pyopenssl < 17.5.0'
- return [cryptography, pyopenssl]
+ requirements = [cryptography, pyopenssl]
+
+ if args.command == 'sanity':
+ requirements.remove(pyopenssl) # sanity tests do not use pyopenssl
+
+ return requirements
def install_command_requirements(args, python_version=None, context=None, enable_pyyaml_check=False):