From: Victor Stinner Date: Tue, 22 Mar 2016 19:56:49 +0000 (+0100) Subject: Issue #26588: Don't call tracemalloc_init() at module initilization X-Git-Tag: v3.6.0a1~400 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8d927266d6c1f098b3490b897e160222d035e5c;p=python Issue #26588: Don't call tracemalloc_init() at module initilization So it's possible to get debug messages in test_tracemalloc. --- 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; }