summaryrefslogtreecommitdiff
path: root/Modules/_tracemalloc.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-22 20:56:49 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-22 20:56:49 +0100
commitb8d927266d6c1f098b3490b897e160222d035e5c (patch)
treeafb7b490028079fc7700905618e41b3774045ff0 /Modules/_tracemalloc.c
parente31e35d34e9db28d36481c9921b3ffdcc65d750d (diff)
downloadcpython-git-b8d927266d6c1f098b3490b897e160222d035e5c.tar.gz
Issue #26588: Don't call tracemalloc_init() at module initilization
So it's possible to get debug messages in test_tracemalloc.
Diffstat (limited to 'Modules/_tracemalloc.c')
-rw-r--r--Modules/_tracemalloc.c2
1 files changed, 2 insertions, 0 deletions
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;
}