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

Function _assertion_supported

src/_pytest/config/__init__.py:1542–1548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1540
1541
1542def _assertion_supported() -> bool:
1543 try:
1544 assert False
1545 except AssertionError:
1546 return True
1547 else:
1548 return False # type: ignore[unreachable]
1549
1550
1551def create_terminal_writer(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected