call site 1 for code.Frame.__init__
apigen/rest/testing/test_rest.py - line 231
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
   def test_generation_modules(self):
->     ds = self.get_filled_docstorage_modules()
       lg = DirectPaste()
       tempdir = temppath.ensure('module_api', dir=True)
       r = RestGen(ds, lg, DirWriter(tempdir))
       r.write()
       basenames = [p.basename for p in tempdir.listdir('*.txt')]
       expected = [
           'class_somemodule.SomeClass.txt',
           'class_someothermodule.SomeSubClass.txt',
           'function_someothermodule.fun.txt',
           'index.txt',
           'method_somemodule.SomeClass.__init__.txt',
           'method_somemodule.SomeClass.method.txt',
           'method_someothermodule.SomeSubClass.__init__.txt',
           'method_someothermodule.SomeSubClass.method.txt',
           'module_Unknown module.txt',
           'module_somemodule.txt',
           'module_someothermodule.txt',
           'traceback_somemodule.SomeClass.__init__.0.txt',
           'traceback_someothermodule.SomeSubClass.__init__.0.txt',
           'traceback_someothermodule.SomeSubClass.method.0.txt',
           'traceback_someothermodule.fun.0.txt',
           'traceback_someothermodule.fun.1.txt',
       ]
       print sorted(basenames)
       assert sorted(basenames) == expected
apigen/rest/testing/test_rest.py - line 171
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
   def get_filled_docstorage_modules(self):
       import somemodule
       import someothermodule
       descs = {
           'somemodule.SomeClass': somemodule.SomeClass,
           'someothermodule.SomeSubClass': someothermodule.SomeSubClass,
           'someothermodule.fun': someothermodule.fun,
       }
       ds = DocStorage().from_dict(descs)
       t = Tracer(ds)
->     t.start_tracing()
       s1 = somemodule.SomeClass("a")
       someothermodule.fun(1, 2, s1)
       s2 = someothermodule.SomeSubClass("b")
       s2.method(1, 2, 3)
       someothermodule.fun(1, 3, s2)
       t.end_tracing()
       return DocStorageAccessor(ds)
apigen/tracer/tracer.py - line 49
45
46
47
48
49
50
   def start_tracing(self):
       if self.tracing:
           return
       self.tracing = True
->     self.frame = py.code.Frame(sys._getframe(1))
       sys.settrace(self._tracer)