showversion: no need for `py.path.local`

This commit is contained in:
Daniel Hahler 2019-11-07 13:05:48 +01:00 committed by Daniel Hahler
parent 245e1f10e5
commit 28edbaace4
1 changed files with 3 additions and 2 deletions

View File

@ -115,9 +115,10 @@ def pytest_cmdline_parse():
def showversion(config):
p = py.path.local(pytest.__file__)
sys.stderr.write(
"This is pytest version {}, imported from {}\n".format(pytest.__version__, p)
"This is pytest version {}, imported from {}\n".format(
pytest.__version__, pytest.__file__
)
)
plugininfo = getpluginversioninfo(config)
if plugininfo: