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

Method test_teardown_exact_stack_empty

testing/test_runner.py:39–45  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

37 assert not values
38
39 def test_teardown_exact_stack_empty(self, pytester: Pytester) -> None:
40 item = pytester.getitem("def test_func(): pass")
41 ss = item.session._setupstate
42 ss.setup(item)
43 ss.teardown_exact(None)
44 ss.teardown_exact(None)
45 ss.teardown_exact(None)
46
47 def test_setup_fails_and_failure_is_cached(self, pytester: Pytester) -> None:
48 item = pytester.getitem(

Callers

nothing calls this directly

Calls 3

teardown_exactMethod · 0.80
getitemMethod · 0.45
setupMethod · 0.45

Tested by

no test coverage detected