def isolated_filesystem(self):
        """A context manager that creates a temporary folder and changes
        the current working directory to it for isolated filesystem tests.
        """
        cwd = os.getcwd()
        t = tempfile.mkdtemp()
        os.chdir(t)
        try:
            yield t
        finally:
            os.chdir(cwd)
            try:
                shutil.rmtree(t)
            except OSError:  # noqa: B014
                pass
A context manager that creates a temporary folder and changes
        the current working directory to it for isolated filesystem tests.
        
dynaconf/vendor/click/testing.py