From b8d927266d6c1f098b3490b897e160222d035e5c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 22 Mar 2016 20:56:49 +0100 Subject: Issue #26588: Don't call tracemalloc_init() at module initilization So it's possible to get debug messages in test_tracemalloc. --- Modules/_tracemalloc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Modules/_tracemalloc.c') diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 288942a904..79a716461d 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -1644,8 +1644,10 @@ PyInit__tracemalloc(void) if (m == NULL) return NULL; +#if 0 if (tracemalloc_init() < 0) return NULL; +#endif return m; } -- cgit v1.2.1