diff options
author | Jon Erling Hustadnes <JonErling.Hustadnes@gmail.com> | 2018-12-17 22:22:05 +0100 |
---|---|---|
committer | Jon Erling Hustadnes <JonErling.Hustadnes@gmail.com> | 2018-12-17 22:22:05 +0100 |
commit | f6c7a281c1cde6d754811f64f3227d5623a4d096 (patch) | |
tree | 6133e3fcf364b8f793bca333aff9b20dbc3f1e60 /tests | |
parent | f7c9f837634738da105056a8b66457afa3ff8636 (diff) | |
download | ranger-f6c7a281c1cde6d754811f64f3227d5623a4d096.tar.gz |
corrected for python 2.7
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ranger/container/test_bookmarks.py | 6 |
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)) |