dont wrap comparisation paths in py.path.local for the junitxml tests, since missing $HOME causes issues else

This commit is contained in:
Ronny Pfannschmidt 2011-05-28 16:52:05 +02:00
parent 89a98e3276
commit 70dc7a976d
1 changed files with 2 additions and 2 deletions

View File

@ -367,9 +367,9 @@ def test_invalid_xml_escape(testdir):
def test_logxml_path_expansion():
from _pytest.junitxml import LogXML
home_tilde = py.path.local(os.path.expanduser('~/test.xml'))
home_tilde = os.path.expanduser('~/test.xml')
# this is here for when $HOME is not set correct
home_var = py.path.local(os.path.expandvars('$HOME/test.xml'))
home_var = os.path.expandvars('$HOME/test.xml')
xml_tilde = LogXML('~/test.xml', None)
assert xml_tilde.logfile == home_tilde