A context manager that temporarily changes the current working directory to path and yields the directory.
test.support.os_helper/change_cwd
change_cwd