Skip to content

Commit

Permalink
[TEST] watch all module dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Meyer committed Mar 9, 2022
1 parent 32f067f commit 5d51a3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Objects/moduleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ PyModule_NewObject(PyObject *name)
return NULL;
if (module_init_dict(m, m->md_dict, name, NULL) != 0)
goto fail;
PyDict_Watch(m->md_dict);
PyObject_GC_Track(m);
return (PyObject *)m;

Expand Down

0 comments on commit 5d51a3e

Please sign in to comment.