mirror of https://github.com/python/cpython
Issue #26588: Don't call tracemalloc_init() at module initilization
So it's possible to get debug messages in test_tracemalloc.
This commit is contained in:
parent
e31e35d34e
commit
b8d927266d
|
@ -1644,8 +1644,10 @@ PyInit__tracemalloc(void)
|
|||
if (m == NULL)
|
||||
return NULL;
|
||||
|
||||
#if 0
|
||||
if (tracemalloc_init() < 0)
|
||||
return NULL;
|
||||
#endif
|
||||
|
||||
return m;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue