diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 19:56:49 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-22 19:56:49 (GMT) |
commit | b8d927266d6c1f098b3490b897e160222d035e5c (patch) | |
tree | afb7b490028079fc7700905618e41b3774045ff0 /Modules | |
parent | e31e35d34e9db28d36481c9921b3ffdcc65d750d (diff) | |
download | cpython-b8d927266d6c1f098b3490b897e160222d035e5c.zip cpython-b8d927266d6c1f098b3490b897e160222d035e5c.tar.gz cpython-b8d927266d6c1f098b3490b897e160222d035e5c.tar.bz2 |
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')
-rw-r--r-- | Modules/_tracemalloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index 288942a..79a7164 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; } |