From 89a98e3276f360c74310b59710fee5fca7949e6c Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sat, 28 May 2011 16:21:57 +0200 Subject: [PATCH] also apply normpath to junitxml file path --- _pytest/junitxml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_pytest/junitxml.py b/_pytest/junitxml.py index f51771354..c7a089cce 100644 --- a/_pytest/junitxml.py +++ b/_pytest/junitxml.py @@ -65,7 +65,8 @@ def pytest_unconfigure(config): class LogXML(object): def __init__(self, logfile, prefix): - self.logfile = os.path.expanduser(os.path.expandvars(logfile)) + logfile = os.path.expanduser(os.path.expandvars(logfile)) + self.logfile = os.path.normpath(logfile) self.prefix = prefix self.test_logs = [] self.passed = self.skipped = 0