Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Modules/_abc.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ _abc__reset_registry(PyObject *module, PyObject *self)
if (impl != NULL) {
Py_BEGIN_CRITICAL_SECTION(impl);
abc_table_clear(&impl->registry);
// Registered classes are also in the cache, and register()
// does nothing for a class which is cached as a subclass.
abc_table_clear(&impl->cache);
Py_END_CRITICAL_SECTION();
}
_PyThreadState_PopCStackRef(tstate, &cref);
Expand Down
Loading