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

Method tearDown

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

Source from the content-addressed store, hash-verified

93 support.reap_children()
94
95 def tearDown(self):
96 if not mswindows:
97 # subprocess._active is not used on Windows and is set to None.
98 for inst in subprocess._active:
99 inst.wait()
100 subprocess._cleanup()
101 self.assertFalse(
102 subprocess._active, "subprocess._active not empty"
103 )
104 self.doCleanups()
105 support.reap_children()
106
107
108class PopenTestException(Exception):

Callers 2

tearDownMethod · 0.45
tearDownMethod · 0.45

Calls 4

assertFalseMethod · 0.80
doCleanupsMethod · 0.80
waitMethod · 0.45
_cleanupMethod · 0.45

Tested by

no test coverage detected