]> granicus.if.org Git - python/commit
bpo-32369: test_subprocess: Fix pass_fds check in test_close_fds() (#4920)
authorizbyshev <izbyshev@users.noreply.github.com>
Mon, 18 Dec 2017 20:26:49 +0000 (03:26 +0700)
committerGregory P. Smith <greg@krypto.org>
Mon, 18 Dec 2017 20:26:49 +0000 (12:26 -0800)
commit2d8f06382e7d5a759ca554110a699a397114824a
tree32c4a259d4992e732710d1860d09dece1eae48b7
parent02e4b7f35419a632b21d17435a61729b97ca0804
bpo-32369: test_subprocess: Fix pass_fds check in test_close_fds() (#4920)

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.
Lib/test/test_subprocess.py