From f6c7a281c1cde6d754811f64f3227d5623a4d096 Mon Sep 17 00:00:00 2001 From: Jon Erling Hustadnes Date: Mon, 17 Dec 2018 22:22:05 +0100 Subject: corrected for python 2.7 --- tests/ranger/container/test_bookmarks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ranger/container/test_bookmarks.py b/tests/ranger/container/test_bookmarks.py index 7802bd5d..e76aaaf2 100644 --- a/tests/ranger/container/test_bookmarks.py +++ b/tests/ranger/container/test_bookmarks.py @@ -64,12 +64,12 @@ def test_bookmark_symlink(tmpdir): bookmarkfile_orig = tmpdir.join("bookmarkfile.org") # Create symlink pointing towards the original plain file. - os.symlink(bookmarkfile_orig, bookmarkfile_link) + os.symlink(str(bookmarkfile_orig), str(bookmarkfile_link)) # Initialize the bookmark file and save the file. bmstore = Bookmarks(str(bookmarkfile_link)) bmstore.save() # Once saved, the bookmark file should still be a symlink pointing towards the plain file. - assert os.path.islink(bookmarkfile_link) - assert not os.path.islink(bookmarkfile_orig) + assert os.path.islink(str(bookmarkfile_link)) + assert not os.path.islink(str(bookmarkfile_orig)) -- cgit 1.4.1-2-gfad0