def METHOD_NAME():
    """Check that a forksafe.Lock is reset after a fork().
    This test fails with a regular threading.Lock.
    """
    lock = forksafe.Lock()
    lock.acquire()
    pid = os.fork()
    if pid == 0:
        # child
        assert lock.acquire()
        lock.release()
        with pytest.raises(lock_release_exc_type):
            lock.release()
        os._exit(12)
    lock.release()
    _, status = os.waitpid(pid, 0)
    exit_code = os.WEXITSTATUS(status)
    assert exit_code == 12