def test_clear_traces(self):
    (obj, obj_traceback) = allocate_bytes(123)
    traceback = tracemalloc.get_object_traceback(obj)
    self.assertIsNotNone(traceback)
    tracemalloc.clear_traces()
    traceback2 = tracemalloc.get_object_traceback(obj)
    self.assertIsNone(traceback2)
def test_clear_traces(self):
    (obj, obj_traceback) = allocate_bytes(123)
    traceback = tracemalloc.get_object_traceback(obj)
    self.assertIsNotNone(traceback)
    tracemalloc.clear_traces()
    traceback2 = tracemalloc.get_object_traceback(obj)
    self.assertIsNone(traceback2)