##### SUMMARY
Happened here: https://github.com/ansible-collections/community.general/pull/341

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
ansible-test

##### ANSIBLE VERSION
```paste below
devel
```

dpkg_options=expand_dpkg_options(DPKG_OPTIONS)):
    if operation not in frozenset(['autoremove', 'autoclean']):
        raise AssertionError('Expected "autoremove" or "autoclean" cleanup operation, got %s' % operation)
    if force:
        force_yes = '--force-yes'
    else:
        force_yes = ''
    if purge:
        purge = '--purge'
    else:
        purge = ''
    if m.check_mode:
        check_arg = '--simulate'
    else:
        check_arg = ''
    cmd = "%s -y %s %s %s %s %s" % (APT_GET_CMD, dpkg_options, purge, force_yes, operation, check_arg)
    with PolicyRcD(m):
        rc, out, err = m.run_command(cmd)
    if m._diff:
        diff = parse_diff(out)
    else:
        diff = {}
    if rc:
        m.fail_json(msg="'apt-get %s' failed: %s" % (operation, err), stdout=out, stderr=err, rc=rc)
    changed = CLEAN_OP_CHANGED_STR[operation] in out
    m.exit_json(changed=changed, stdout=out, stderr=err, diff=diff)
def upgrade(m, mode="yes", force=False, default_release=None,