MCPcopy Index your code
hub / github.com/RustPython/RustPython / TestWithTempCurrentDir

Class TestWithTempCurrentDir

extra_tests/snippets/stdlib_os.py:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102
103class TestWithTempCurrentDir:
104 def __enter__(self):
105 self.prev_cwd = os.getcwd()
106
107 def __exit__(self, exc_type, exc_val, exc_tb):
108 os.chdir(self.prev_cwd)
109
110
111FILE_NAME = "test1"

Callers 1

stdlib_os.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected