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

Method test_teardown_exact_stack_empty

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

Source from the content-addressed store, hash-verified

32 assert not values
33
34 def test_teardown_exact_stack_empty(self, pytester: Pytester) -> None:
35 item = pytester.getitem("def test_func(): pass")
36 ss = item.session._setupstate
37 ss.setup(item)
38 ss.teardown_exact(None)
39 ss.teardown_exact(None)
40 ss.teardown_exact(None)
41
42 def test_setup_fails_and_failure_is_cached(self, pytester: Pytester) -> None:
43 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