Directory removed in FunctionTask but cwd not updated.
Steps to repeat are to setup a dev environment and run tests, which pytest-sugar plugin does an os path operation at the end which throws the error, or just call os.getcwd() after a FunctionTask method
I think this can be fixed by adding the old dir path at the beginning of run and changing back here at the end.
Directory removed in FunctionTask but cwd not updated.
Steps to repeat are to setup a dev environment and run tests, which pytest-sugar plugin does an os path operation at the end which throws the error, or just call os.getcwd() after a FunctionTask method
I think this can be fixed by adding the old dir path at the beginning of run and changing back here at the end.