[py-svn] pytest commit 98575d7ad93e: fix bug showing up on windows

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sun Nov 7 01:12:07 CET 2010


# HG changeset patch -- Bitbucket.org
# Project pytest
# URL http://bitbucket.org/hpk42/pytest/overview
# User holger krekel <holger at merlinux.eu>
# Date 1289088820 -3600
# Node ID 98575d7ad93e5bce342be4f64089798b73a61ed1
# Parent  0ce9db200a51ce2de73ba3b2a009c08b975a058d
fix bug showing up on windows

--- a/pytest/plugin/session.py
+++ b/pytest/plugin/session.py
@@ -323,7 +323,7 @@ class FSCollector(Collector):
             return "."
         relpath = self.collection.fspath.bestrelpath(self.fspath)
         if os.sep != "/":
-            relpath = str(path).replace(os.sep, "/")
+            relpath = relpath.replace(os.sep, "/")
         return relpath
 
 class File(FSCollector):



More information about the pytest-commit mailing list