(self)
| 287 | |
| 288 | @contextlib.contextmanager |
| 289 | def fake_venv(self): |
| 290 | venv = Path.cwd() / "Scripts" |
| 291 | venv.mkdir(exist_ok=True, parents=True) |
| 292 | venv_exe = (venv / ("python_d.exe" if DEBUG_BUILD else "python.exe")) |
| 293 | venv_exe.touch() |
| 294 | try: |
| 295 | yield venv_exe, {"VIRTUAL_ENV": str(venv.parent)} |
| 296 | finally: |
| 297 | shutil.rmtree(venv) |
| 298 | |
| 299 | |
| 300 | class TestLauncher(unittest.TestCase, RunPyMixin): |
no test coverage detected