(cls)
| 848 | @classmethod |
| 849 | @contextmanager |
| 850 | def _cleared_memory_cache(cls): |
| 851 | # type: () -> Iterator[None] |
| 852 | # Intended for test use. |
| 853 | |
| 854 | _cache = cls._PYTHON_INTERPRETER_BY_NORMALIZED_PATH.copy() |
| 855 | cls._PYTHON_INTERPRETER_BY_NORMALIZED_PATH = {} |
| 856 | try: |
| 857 | yield |
| 858 | finally: |
| 859 | cls._PYTHON_INTERPRETER_BY_NORMALIZED_PATH = _cache |
| 860 | |
| 861 | @classmethod |
| 862 | def _resolve_pyvenv_canonical_python_binary( |