Skip to content

Commit ee70a96

Browse files
Disable a prematurely-restrictive assert.
1 parent 8d442e2 commit ee70a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/import.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ _extensions_cache_clear_all(void)
10511051
{
10521052
/* The runtime (i.e. main interpreter) must be finalizing,
10531053
so we don't need to worry about the lock. */
1054-
assert(_Py_IsMainInterpreter(_PyInterpreterState_GET()));
1054+
// XXX assert(_Py_IsMainInterpreter(_PyInterpreterState_GET()));
10551055
Py_CLEAR(EXTENSIONS.dict);
10561056
_PyThreadState_ClearDetached(&EXTENSIONS.main_tstate);
10571057
}

0 commit comments

Comments
 (0)