• Victor Stinner's avatar
    bpo-31479: Always reset the signal alarm in tests (#3588) · 9abee722
    Victor Stinner yazdı
    * 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
    9abee722
test_pty.py 10.8 KB