MCPcopy Index your code
hub / github.com/python/cpython / test_swap_fds

Method test_swap_fds

Lib/test/test_subprocess.py:2819–2825  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2817 # either 0, 1 or 2, it is possible that it is overwritten (#12607).
2818 # This tests all combinations of this.
2819 def test_swap_fds(self):
2820 self.check_swap_fds(0, 1, 2)
2821 self.check_swap_fds(0, 2, 1)
2822 self.check_swap_fds(1, 0, 2)
2823 self.check_swap_fds(1, 2, 0)
2824 self.check_swap_fds(2, 0, 1)
2825 self.check_swap_fds(2, 1, 0)
2826
2827 def _check_swap_std_fds_with_one_closed(self, from_fds, to_fds):
2828 saved_fds = self._save_fds(range(3))

Callers

nothing calls this directly

Calls 1

check_swap_fdsMethod · 0.95

Tested by

no test coverage detected