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

Function setUpModule

Lib/test/test_subprocess.py:79–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77
78
79def setUpModule():
80 shell_true = shutil.which('true')
81 if shell_true is None:
82 return
83 if (os.access(shell_true, os.X_OK) and
84 subprocess.run([shell_true]).returncode == 0):
85 global ZERO_RETURN_CMD
86 ZERO_RETURN_CMD = (shell_true,) # Faster than Python startup.
87
88
89class BaseTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

accessMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…