(self)
| 3294 | self.assertEqual(len(inner_frame.f_locals), 0) |
| 3295 | |
| 3296 | def test_extract_stack(self): |
| 3297 | def extract(): |
| 3298 | return traceback.extract_stack() |
| 3299 | result = extract() |
| 3300 | lineno = extract.__code__.co_firstlineno |
| 3301 | self.assertEqual(result[-2:], [ |
| 3302 | (__file__, lineno+2, 'test_extract_stack', 'result = extract()'), |
| 3303 | (__file__, lineno+1, 'extract', 'return traceback.extract_stack()'), |
| 3304 | ]) |
| 3305 | self.assertEqual(len(result[0]), 4) |
| 3306 | |
| 3307 | |
| 3308 | class TestFrame(unittest.TestCase): |
nothing calls this directly
no test coverage detected