Permalink
Browse files

fix mistake

  • Loading branch information...
mortenvp committed Aug 15, 2017
1 parent b7a4d17 commit 14cd023b08b48583d49162ddffc676d64d18a0e2
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/pytest_testdirectory/testdirectory.py
@@ -140,13 +140,13 @@ def symlink_file(self, filename, rename_as="", relative=True):
filename = self._expand_filename(filename=filename)
filepath = py.path.local(filename)
filepath = str(py.path.local(filename))
if relative:
filepath = os.path.relpath(
start=str(self.tmpdir), path=str(filepath))
start=str(self.tmpdir), path=filepath)
link_name = self.tmpdir.join(filepath.basename)
link_name = self.tmpdir.join(os.path.basename(filepath))
if rename_as:
link_name = self.tmpdir.join(rename_as)

0 comments on commit 14cd023

Please sign in to comment.