MCPcopy
hub / github.com/pytest-dev/pytest / getworkerinfoline

Function getworkerinfoline

src/_pytest/reports.py:49–58  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

47
48
49def getworkerinfoline(node):
50 try:
51 return node._workerinfocache
52 except AttributeError:
53 d = node.workerinfo
54 ver = "{}.{}.{}".format(*d["version_info"][:3])
55 node._workerinfocache = s = "[{}] {} -- Python {} {}".format(
56 d["id"], d["sysplatform"], ver, d["executable"]
57 )
58 return s
59
60
61class BaseReport:

Callers 1

toterminalMethod · 0.85

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected