Run Python code in a subprocess using subprocess.run
(self, code, **kwargs)
| 1793 | |
| 1794 | class RunFuncTestCase(BaseTestCase): |
| 1795 | def run_python(self, code, **kwargs): |
| 1796 | """Run Python code in a subprocess using subprocess.run""" |
| 1797 | argv = [sys.executable, "-c", code] |
| 1798 | return subprocess.run(argv, **kwargs) |
| 1799 | |
| 1800 | def test_returncode(self): |
| 1801 | # call() function with sequence argument |
no test coverage detected