about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJon Erling Hustadnes <JonErling.Hustadnes@gmail.com>2018-12-17 22:22:05 +0100
committerJon Erling Hustadnes <JonErling.Hustadnes@gmail.com>2018-12-17 22:22:05 +0100
commitf6c7a281c1cde6d754811f64f3227d5623a4d096 (patch)
tree6133e3fcf364b8f793bca333aff9b20dbc3f1e60
parentf7c9f837634738da105056a8b66457afa3ff8636 (diff)
downloadranger-f6c7a281c1cde6d754811f64f3227d5623a4d096.tar.gz
corrected for python 2.7
-rw-r--r--tests/ranger/container/test_bookmarks.py6
1 files 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))