| 1 | diff --git a/src/_pytest/python.py b/src/_pytest/python.py |
| 2 | --- a/src/_pytest/python.py |
| 3 | +++ b/src/_pytest/python.py |
| 4 | @@ -1342,17 +1342,19 @@ def _showfixtures_main(config, session): |
| 5 | currentmodule = module |
| 6 | if verbose <= 0 and argname[0] == "_": |
| 7 | continue |
| 8 | + tw.write(argname, green=True) |
| 9 | + if fixturedef.scope != "function": |
| 10 | + tw.write(" [%s scope]" % fixturedef.scope, cyan=True) |
| 11 | if verbose > 0: |
| 12 | - funcargspec = "%s -- %s" % (argname, bestrel) |
| 13 | - else: |
| 14 | - funcargspec = argname |
| 15 | - tw.line(funcargspec, green=True) |
| 16 | + tw.write(" -- %s" % bestrel, yellow=True) |
| 17 | + tw.write("\n") |
| 18 | loc = getlocation(fixturedef.func, curdir) |
| 19 | doc = fixturedef.func.__doc__ or "" |
| 20 | if doc: |
| 21 | write_docstring(tw, doc) |
| 22 | else: |
| 23 | tw.line(" %s: no docstring available" % (loc,), red=True) |
| 24 | + tw.line() |
| 25 | |
| 26 | |
| 27 | def write_docstring(tw, doc, indent=" "): |