• Tim Peters's avatar
    CommonSetupTearDown.tearDown(): Ack, this is a mess. Before 2.3, there's · fa0327cd
    Tim Peters authored
    not enough stuff in the Windows Python to wait for spawned servers to shut
    down.  Spawned servers inherit descriptors for open files from the
    spawning process, and because Windows won't let you delete a file that's
    still open, the client can't get rid of temp .zec files until the server(s)
    disappear(s).  There's no good fix for this before 2.3 on Windows.  For
    now, try deleting the temp files repeatedly, sleeping between failures,
    but don't wait forever.  If a temp file can't be deleted in the end, raise
    the appropriate exception.  This should be rare.  It's important not to
    keep going blindly, as I saw one case earlier today where a test passed
    by accident due to picking up a .zec file left behind by a previous test
    run.
    fa0327cd
ConnectionTests.py 32.1 KB