def assert_help_output_equals(actual: str, expected: str) -> None:
    prog = sys.argv[0].split('/')[(- 1)]
    if (prog != 'pytest'):
        expected = expected.replace('usage: pytest', f'usage: {prog}')
    remove = (string.punctuation + string.whitespace)
    if (('optional arguments' in expected) and (sys.version_info[:2] >= (3, 10))):
        expected = expected.replace('optional arguments', 'options')
    actual_str = ''.join(actual.split())
    actual_str = actual.translate(str.maketrans('', '', remove))
    expected_str = expected.translate(str.maketrans('', '', remove))
    assert (actual_str == expected_str), ('\n' + '\n'.join([actual_str, expected_str]))
def assert_help_output_equals(actual: str, expected: str) -> None:
    prog = sys.argv[0].split('/')[(- 1)]
    if (prog != 'pytest'):
        expected = expected.replace('usage: pytest', f'usage: {prog}')
    remove = (string.punctuation + string.whitespace)
    if (('optional arguments' in expected) and (sys.version_info[:2] >= (3, 10))):
        expected = expected.replace('optional arguments', 'options')
    actual_str = .join(actual.split())
    actual_str = actual.translate(str.maketrans(, , remove))
    expected_str = expected.translate(str.maketrans(, , remove))
    assert (actual_str == expected_str), ('\n' + '\n'.join([actual_str, expected_str]))