Change back to previous directory on stack. Args: excinfo: sys.exc_info captured in the context block
(self, *excinfo)
| 205 | os.chdir(self.path) |
| 206 | |
| 207 | def __exit__(self, *excinfo): |
| 208 | """Change back to previous directory on stack. |
| 209 | |
| 210 | Args: |
| 211 | excinfo: sys.exc_info captured in the context block |
| 212 | """ |
| 213 | os.chdir(self._old_cwd.pop()) |
| 214 | |
| 215 | |
| 216 | @pytest.fixture |