(self)
| 808 | self.assertFalse(stack._exit_callbacks) |
| 809 | |
| 810 | def test_close(self): |
| 811 | result = [] |
| 812 | with self.exit_stack() as stack: |
| 813 | @stack.callback |
| 814 | def _exit(): |
| 815 | result.append(1) |
| 816 | self.assertIsNotNone(_exit) |
| 817 | stack.close() |
| 818 | result.append(2) |
| 819 | self.assertEqual(result, [1, 2]) |
| 820 | |
| 821 | def test_pop_all(self): |
| 822 | result = [] |
nothing calls this directly
no test coverage detected