• Rufflewind's avatar
    testsuite: make tests respond to SIGINT properly · ca593c7d
    Rufflewind authored
    The `std*_buffer` need to be bytes to avoid breaking Python 3.
    
    Also, using a blanket `except` in Python without specifying the
    exception types will catch special exceptions such as
    `KeyboardInterrupt`, which can prevent the program from being
    interrupted properly.
    
    Test Plan: validate
    
    Reviewers: thomie, austin, bgamari
    
    Reviewed By: bgamari
    
    Differential Revision: https://phabricator.haskell.org/D2805
    ca593c7d
testlib.py 66.6 KB