diff --git a/tests/test_usecase.py b/tests/test_usecase.py index 8091f69..d5eea53 100644 --- a/tests/test_usecase.py +++ b/tests/test_usecase.py @@ -355,8 +355,8 @@ class TestList(DataCommandTestCase): def test_list_several_no_date(self): self.execute_cmds(['pubs init -p testrepo']) - os.chdir('/') # weird fix for shutil.rmtree invocation. - shutil.rmtree(self.rootpath + '/testrepo') + os.chdir('/') # weird fix for shutil.rmtree invocation. + shutil.rmtree(os.path.join(self.rootpath, 'testrepo')) os.chdir(self.rootpath) self.fs.add_real_directory(os.path.join(self.rootpath, 'testrepo'), read_only=False)