Skip to content

Commit

Permalink
showversion: no need for py.path.local (#6163)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored Nov 9, 2019
2 parents 245e1f1 + 28edbaa commit 96c315e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/_pytest/helpconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ def unset_tracing():


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:
Expand Down

0 comments on commit 96c315e

Please sign in to comment.