### Summary

I know there is some ongoing work to mitigate these problems, but since I'm not aware which parts have already been addressed and which not, I want to share some common failures here which I've seen during the last days:

1. When running `ansible-test sanity --color -v --junit --coverage-check --changed --docker --base-branch origin/main --skip-test pylint --skip-test ansible-doc --skip-test validate-modules --allow-disabled` in CI, the Python 2.6 `import` test fails:
```
02:05 ERROR: Command "/root/ansible_collections/community/general/tests/output/.tmp/sanity/import/minimal-py26/bin/python /root/ansible/test/lib/ansible_test/_data/quiet_pip.py install --disable-pip-version-check coverage -c /root/ansible/test/lib/ansible_test/_data/requirements/constraints.txt" returned exit status 1.
02:05 >>> Standard Error
02:05 Could not find a version that satisfies the requirement coverage<5.0.0,>=4.5.1 (from -c /root/ansible/test/lib/ansible_test/_data/requirements/constraints.txt (line 2)) (from versions: )
02:05 No matching distribution found for coverage<5.0.0,>=4.5.1 (from -c /root/ansible/test/lib/ansible_test/_data/requirements/constraints.txt (line 2))
02:05 >>> Standard Output
02:05 Collecting coverage<5.0.0,>=4.5.1 (from -c /root/ansible/test/lib/ansible_test/_data/requirements/constraints.txt (line 2))
```
(See https://app.shippable.com/github/ansible-collections/community.general/runs/8257/1/console for the full log)

2. When running unit tests for Python 2.6 with `ansible-test units -v --color --docker --coverage` with `unittest2 ; python_version < '2.7'` in tests/unit/requirements.txt, it fails:
```
Run command: /usr/bin/python2.6 /root/ansible/test/lib/ansible_test/_data/quiet_pip.py install --disable-pip-version-check -r /root/ansible/test/lib/ansible_test/_data/requirements/units.txt -r tests/unit/requirements.txt coverage -c /root/ansible/test/lib/ansible_test/_data/requirements/constraints.txt
Collecting unittest2 (from -r tests/unit/requirements.txt (line 1))
  Could not find a version that satisfies the requirement unittest2 (from -r tests/unit/requirements.txt (line 1)) (from versions: )
No matching distribution found for unittest2 (from -r tests/unit/requirements.txt (line 1))
ERROR: Command "/usr/bin/python2.6 /root/ansible/test/lib/ansible_test/_data/quiet_pip.py install --disable-pip-version-check -r /root/ansible/test/lib/ansible_test/_data/requirements/units.txt -r tests/unit/requirements.txt coverage -c /root/ansible/test/lib/ansible_test/_data/requirements/constraints.txt" returned exit status 1.
```
(See https://github.com/ansible-collections/community.hrobot/runs/2264772861?check_suite_focus=true)


### Issue Type

Bug Report

### Component Name

ansible-test

### Ansible Version

```console (paste below)
devel
```


### Configuration

...

### OS / Environment

...

### Steps to Reproduce

...

### Expected Results

...

### Actual Results

...
"""Checks to perform at startup before running commands."""
    check_legacy_modules()
def check_legacy_modules():
    """Detect conflicts with legacy core/extras module directories to avoid problems later."""
    for directory in 'core', 'extras':
        path = 'lib/ansible/modules/%s' % directory
        for root, _dir_names, file_names in os.walk(path):
            if file_names:
                
                raise ApplicationError('Files prohibited in "%s". '
                                       'These are most likely legacy modules from version 2.2 or earlier.' % root)
def create_shell_command(command):
    """
    :type command: list[str]
    :rtype: list[str]
    """
    optional_vars = (
        'TERM',
    )
    cmd = ['/usr/bin/env']
    cmd += ['%s=%s' % (var, os.environ[var]) for var in optional_vars if var in os.environ]
    cmd += command
    return cmd
def get_openssl_version(args, python, python_version):