Make sure repo.close()
So that all testcases can pass on Windows, without the WindowsError: [Error 32] The process cannot access the file because it is being used by another process: ...
So that all testcases can pass on Windows, without the WindowsError: [Error 32] The process cannot access the file because it is being used by another process: ...