def needs_parasol(test_item):
    """
    Use as decorator so tests are only run if Parasol is installed.
    """
    test_item = _mark_test('parasol', test_item)
    try:
        with open(os.devnull, 'r+') as devnull:
            subprocess.Popen('parasol', stdout=devnull, stderr=devnull, stdin=devnull)
    except __HOLE__:
        return unittest.skip("Skipping test. Install Parasol to include this test.")(test_item)
    except:
        raise
    else:
        return test_item
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/test/__init__.py/needs_parasol