• Victor Stinner's avatar
    bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7314) · 3604b239
    Victor Stinner authored
    * bpo-31479: Always reset the signal alarm in tests
    
    Use "try: ... finally: signal.signal(0)" pattern to make sure that
    tests don't "leak" a pending fatal signal alarm.
    
    * Move two more alarm() calls into the try block
    
    Fix also typo: replace signal.signal(0) with signal.alarm(0)
    
    * Move another signal.alarm() into the try block
    
    (cherry picked from commit 9abee722)
    3604b239
test_socket.py 62.5 KB