terinalwriter: use dash between plugin name and version

This commit is contained in:
Ronny Pfannschmidt 2015-08-17 08:48:38 +02:00
parent 2c42f15e00
commit 740a97a8cc
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ class TerminalReporter:
l = [] l = []
for plugin, dist in plugininfo: for plugin, dist in plugininfo:
# gets us name and version! # gets us name and version!
name = str(dist) name = '{dist.project_name}-{dist.version}'.format(dist=dist)
# questionable convenience, but it keeps things short # questionable convenience, but it keeps things short
if name.startswith("pytest-"): if name.startswith("pytest-"):
name = name[7:] name = name[7:]