MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/idlelib/idle_test/test_debugger.py:243–251  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

241 del cls.root
242
243 def setUp(self):
244 self.code = compile(TEST_CODE, 'test_stackviewer.py', 'exec')
245 self.stack = [
246 (MockFrame(self.code, 1), 1),
247 (MockFrame(self.code, 2), 2)
248 ]
249 # Create a stackviewer and load the test stack.
250 self.sv = debugger.StackViewer(self.root, None, None)
251 self.sv.load_stack(self.stack)
252
253 def test_init(self):
254 # Test creation of StackViewer.

Callers

nothing calls this directly

Calls 3

MockFrameClass · 0.85
load_stackMethod · 0.80
compileFunction · 0.50

Tested by

no test coverage detected