MCPcopy Create free account
hub / github.com/dot-agent/nextpy / __exit__

Method __exit__

tests/conftest.py:207–213  ·  view source on GitHub ↗

Change back to previous directory on stack. Args: excinfo: sys.exc_info captured in the context block

(self, *excinfo)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected