MCPcopy Create free account
hub / github.com/pytest-dev/pytest / set_default

Method set_default

src/_pytest/python_api.py:471–472  ·  view source on GitHub ↗
(x, default)

Source from the content-addressed store, hash-verified

469 """
470
471 def set_default(x, default):
472 return x if x is not None else default
473
474 # Figure out what the absolute tolerance should be. ``self.abs`` is
475 # either None or a value specified by the user.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected