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