diff --git a/test/test_nonunicode.py b/test/test_nonunicode.py index 5094f618..6d723662 100644 --- a/test/test_nonunicode.py +++ b/test/test_nonunicode.py @@ -35,7 +35,7 @@ def test_nonunicode_branchname(testrepo): folderpath = 'temp_repo_nonutf' if os.path.exists(folderpath): - shutil.rmdir(folderpath) + shutil.rmtree(folderpath) newrepo = pygit2.clone_repository( path=folderpath, url='https://github.com/pygit2/test_branch_notutf.git'