MCPcopy Create free account
hub / github.com/ipython/ipython / in_tempdir

Method in_tempdir

IPython/utils/tests/test_path.py:353–359  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

351 @classmethod
352 @contextmanager
353 def in_tempdir(cls):
354 save = os.getcwd()
355 try:
356 os.chdir(cls.tempdir.name)
357 yield
358 finally:
359 os.chdir(save)
360
361 def check_match(self, patterns, matches):
362 with self.in_tempdir():

Callers 2

check_matchMethod · 0.95
setUpClassMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected