mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix bugs in ansible-test units command. (#24044)
* Handle old versions of coverage. * Handle old versions of setuptools. * Detect python version for docker/remote units. * Add sanity override for test constraints.
This commit is contained in:
@@ -477,6 +477,9 @@ class EnvironmentConfig(CommonConfig):
|
||||
|
||||
self.requirements = args.requirements # type: bool
|
||||
|
||||
if self.python == 'default':
|
||||
self.python = '.'.join(str(i) for i in sys.version_info[:2])
|
||||
|
||||
self.python_version = self.python or '.'.join(str(i) for i in sys.version_info[:2])
|
||||
|
||||
self.delegate = self.tox or self.docker or self.remote
|
||||
|
||||
Reference in New Issue
Block a user