From 9bed4bb31c821fe86b95b946082a73bf3af1bcbc Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 7 Nov 2010 01:13:40 +0100 Subject: [PATCH] fix bug showing up on windows --- pytest/plugin/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytest/plugin/session.py b/pytest/plugin/session.py index 524f34c77..69de9c116 100644 --- 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):