• izbyshev's avatar
    bpo-32369: test_subprocess: Fix pass_fds check in test_close_fds() (#4920) · 2d8f0638
    izbyshev authored
    The last part of test_close_fds() doesn't match its own comment.
    The following assertion always holds because fds_to_keep and open_fds
    are disjoint by construction.
    
    self.assertFalse(remaining_fds & fds_to_keep & open_fds,
                     "Some fds not in pass_fds were left open")
    
    Fix the code to match the message in the assertion.
    2d8f0638
test_subprocess.py 128 KB