()
| 77 | |
| 78 | |
| 79 | def 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 | |
| 89 | class BaseTestCase(unittest.TestCase): |