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:
Victor Stinner 2016-03-22 20:56:49 +01:00
parent e31e35d34e
commit b8d927266d
1 changed files with 2 additions and 0 deletions

View File

@ -1644,8 +1644,10 @@ PyInit__tracemalloc(void)
if (m == NULL)
return NULL;
#if 0
if (tracemalloc_init() < 0)
return NULL;
#endif
return m;
}