Issue #26588: remove debug traces from _tracemalloc.

This commit is contained in:
Victor Stinner 2016-03-22 23:54:42 +01:00
parent 92c21d7a7c
commit f9a71153e9
5 changed files with 5 additions and 91 deletions

View file

@ -88,9 +88,6 @@ def traceback_filename(filename):
class TestTracemallocEnabled(unittest.TestCase):
def setUp(self):
if _testcapi:
_testcapi.tracemalloc_set_debug(True)
if tracemalloc.is_tracing():
self.skipTest("tracemalloc must be stopped before the test")
@ -98,8 +95,6 @@ class TestTracemallocEnabled(unittest.TestCase):
def tearDown(self):
tracemalloc.stop()
if _testcapi:
_testcapi.tracemalloc_set_debug(False)
def test_get_tracemalloc_memory(self):
data = [allocate_bytes(123) for count in range(1000)]
@ -882,9 +877,6 @@ class TestCAPI(unittest.TestCase):
maxDiff = 80 * 20
def setUp(self):
if _testcapi:
_testcapi.tracemalloc_set_debug(True)
if tracemalloc.is_tracing():
self.skipTest("tracemalloc must be stopped before the test")
@ -898,8 +890,6 @@ class TestCAPI(unittest.TestCase):
def tearDown(self):
tracemalloc.stop()
if _testcapi:
_testcapi.tracemalloc_set_debug(False)
def get_traceback(self):
frames = _testcapi.tracemalloc_get_traceback(self.domain, self.ptr)