def get_errors(error_string):

    lines = error_string.splitlines()
    error_lines = tuple(line for line in lines if line.find('Error') >= 0)
    if len(error_lines) > 0:
        return '\n'.join(error_lines)
    else:
        return error_string.strip()
Test that the lock can not be acquired when the lock is held
dataset/ETHPy150Open tanghaibao/jcvi/apps/tesseract.py/get_errors--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/DeferredFilesystemLockTestCase.test_waitUntilLockedWithTimeoutLocked