def test_get_tracemalloc_memory(self):
    data = [allocate_bytes(123) for count in range(1000)]
    size = tracemalloc.get_tracemalloc_memory()
    self.assertGreaterEqual(size, 0)
    tracemalloc.clear_traces()
    size2 = tracemalloc.get_tracemalloc_memory()
    self.assertGreaterEqual(size2, 0)
    self.assertLessEqual(size2, size)
def test_get_tracemalloc_memory(self):
    data = [allocate_bytes(123) for count in range(1000)]
    size = tracemalloc.get_tracemalloc_memory()
    self.assertGreaterEqual(size, 0)
    tracemalloc.clear_traces()
    size2 = tracemalloc.get_tracemalloc_memory()
    self.assertGreaterEqual(size2, 0)
    self.assertLessEqual(size2, size)