(root)
| 142 | |
| 143 | @contextlib.contextmanager |
| 144 | def chdir(root): |
| 145 | if root == ".": |
| 146 | yield |
| 147 | return |
| 148 | cwd = os.getcwd() |
| 149 | os.chdir(root) |
| 150 | try: |
| 151 | yield |
| 152 | except BaseException as exc: |
| 153 | raise exc |
| 154 | finally: |
| 155 | os.chdir(cwd) |
| 156 | |
| 157 | |
| 158 | def reliability_guard(maximum_memory_bytes=None): |
no outgoing calls
no test coverage detected
searching dependent graphs…