Use join for joining paths.

main
Olivier Mangin 7 years ago
parent c513870132
commit 8fe650c040
No known key found for this signature in database
GPG Key ID: D72FEC1C3120A884

@ -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)

Loading…
Cancel
Save