Closed
Description
The tests test_flock and test_lockf are racy and fail spuriously. The parent process trying to synchronize the subprocess may sleep up to max_delay=1.0 seconds between tries, while the subprocess locks the file at most sleep_time=0.2 seconds until it exits (and unlocks the file). This may happen completely while the parent sleeps between two tries.