diff options
Diffstat (limited to 'test/lib/ansible_test/_internal/commands/sanity/import.py')
-rw-r--r-- | test/lib/ansible_test/_internal/commands/sanity/import.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/lib/ansible_test/_internal/commands/sanity/import.py b/test/lib/ansible_test/_internal/commands/sanity/import.py index 36f52415..b8083324 100644 --- a/test/lib/ansible_test/_internal/commands/sanity/import.py +++ b/test/lib/ansible_test/_internal/commands/sanity/import.py @@ -127,26 +127,20 @@ class ImportTest(SanityMultipleVersion): ('plugin', _get_module_test(False)), ): if import_type == 'plugin' and python.version in REMOTE_ONLY_PYTHON_VERSIONS: - # Plugins are not supported on remote-only Python versions. - # However, the collection loader is used by the import sanity test and unit tests on remote-only Python versions. - # To support this, it is tested as a plugin, but using a venv which installs no requirements. - # Filtering of paths relevant to the Python version tested has already been performed by filter_remote_targets. - venv_type = 'empty' - else: - venv_type = import_type + continue data = '\n'.join([path for path in paths if test(path)]) if not data and not args.prime_venvs: continue - virtualenv_python = create_sanity_virtualenv(args, python, f'{self.name}.{venv_type}', coverage=args.coverage, minimize=True) + virtualenv_python = create_sanity_virtualenv(args, python, f'{self.name}.{import_type}', coverage=args.coverage, minimize=True) if not virtualenv_python: display.warning(f'Skipping sanity test "{self.name}" on Python {python.version} due to missing virtual environment support.') return SanitySkipped(self.name, python.version) - virtualenv_yaml = args.explain or check_sanity_virtualenv_yaml(virtualenv_python) + virtualenv_yaml = check_sanity_virtualenv_yaml(virtualenv_python) if virtualenv_yaml is False: display.warning(f'Sanity test "{self.name}" ({import_type}) on Python {python.version} may be slow due to missing libyaml support in PyYAML.') |