Enhance _tracemalloc debug mode

Issue #26588: Enhance assertion in set_reentrant()
This commit is contained in:
Victor Stinner 2016-03-23 00:17:04 +01:00
parent 2f49e09110
commit d5871e62dd
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ get_reentrant(void)
static void
set_reentrant(int reentrant)
{
assert(!reentrant || !get_reentrant());
assert(reentrant != tracemalloc_reentrant);
tracemalloc_reentrant = reentrant;
}
#endif