diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_tracemalloc.py | 10 | ||||
-rw-r--r-- | Lib/test/test_warnings/__init__.py | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test_tracemalloc.py b/Lib/test/test_tracemalloc.py index 44cd539..359d9c0 100644 --- a/Lib/test/test_tracemalloc.py +++ b/Lib/test/test_tracemalloc.py @@ -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) diff --git a/Lib/test/test_warnings/__init__.py b/Lib/test/test_warnings/__init__.py index f2401c8..e6f47cd 100644 --- a/Lib/test/test_warnings/__init__.py +++ b/Lib/test/test_warnings/__init__.py @@ -772,7 +772,6 @@ class CWarningsDisplayTests(WarningsDisplayTests, unittest.TestCase): class PyWarningsDisplayTests(WarningsDisplayTests, unittest.TestCase): module = py_warnings - @unittest.skipIf(True, "FIXME: Issue #26588") def test_tracemalloc(self): self.addCleanup(support.unlink, support.TESTFN) |