tests/test-stdio.py
changeset 52640 24ee91ba9aa8
parent 49297 402f9f0f9387
child 52728 f8f14e6d032b
equal deleted inserted replaced
52639:9db77d46de79 52640:24ee91ba9aa8
    86         yield
    86         yield
    87     finally:
    87     finally:
    88         for fd in fds:
    88         for fd in fds:
    89             try:
    89             try:
    90                 os.close(fd)
    90                 os.close(fd)
    91             except EnvironmentError:
    91             except OSError:
    92                 pass
    92                 pass
    93 
    93 
    94 
    94 
    95 # In the following, we set the FDs non-inheritable mainly to make it possible
    95 # In the following, we set the FDs non-inheritable mainly to make it possible
    96 # for tests to close the receiving end of the pipe / PTYs.
    96 # for tests to close the receiving end of the pipe / PTYs.