showversion: no need for `py.path.local`
This commit is contained in:
parent
245e1f10e5
commit
28edbaace4
|
@ -115,9 +115,10 @@ def pytest_cmdline_parse():
|
||||||
|
|
||||||
|
|
||||||
def showversion(config):
|
def showversion(config):
|
||||||
p = py.path.local(pytest.__file__)
|
|
||||||
sys.stderr.write(
|
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)
|
plugininfo = getpluginversioninfo(config)
|
||||||
if plugininfo:
|
if plugininfo:
|
||||||
|
|
Loading…
Reference in New Issue