def check_track(self, release_gil):
    nframe = 5
    tracemalloc.start(nframe)
    size = tracemalloc.get_traced_memory()[0]
    frames = self.track(release_gil, nframe)
    self.assertEqual(self.get_traceback(), tracemalloc.Traceback(frames))
    self.assertEqual(self.get_traced_memory(), self.size)
def check_track(self, release_gil):
    nframe = 5
    tracemalloc.start(nframe)
    size = tracemalloc.get_traced_memory()[0]
    frames = self.track(release_gil, nframe)
    self.assertEqual(self.get_traceback(), tracemalloc.Traceback(frames))
    self.assertEqual(self.get_traced_memory(), self.size)