def FilterKnownTestFailures(tests, **env):
    skipped = []
    if env.get('under_valgrind'):
        (tests, n_tests_skipped, reason) = FilterKnownValgrindTestFailures(tests)
        skipped.append((n_tests_skipped, reason))
    return (tests, skipped)
def FilterKnownTestFailures(tests, **env):
    skipped = []
    if env.get('under_valgrind'):
        (tests, n_tests_skipped, reason) = FilterKnownValgrindTestFailures(tests)
        skipped.append((n_tests_skipped, reason))
    return (tests, skipped)