# HG changeset patch -- Bitbucket.org
# Project pytest
# URL http://bitbucket.org/hpk42/pytest/overview
# User holger krekel <hol...@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):
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to