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

Method test_tuple

testing/python/raises.py:139–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 raise ValueError()
138
139 def test_tuple(self):
140 with pytest.raises((KeyError, ValueError)):
141 raise KeyError("oops")
142
143 def test_no_raise_message(self) -> None:
144 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected