diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-11-11 20:11:15 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-11-11 20:11:15 +0100 |
commit | 58570e2a9e801c9d6758a79968e54d74f7ce0c45 (patch) | |
tree | f66bd116f1e85f3743868c514e6e8de1ce26812f /Python/bltinmodule.c | |
parent | 3b142536f70f81872eac135b55e0572429c5ab46 (diff) | |
parent | aae0fc1b4754dafd00a40c1c48e19e5e19b64343 (diff) | |
download | cpython-58570e2a9e801c9d6758a79968e54d74f7ce0c45.tar.gz |
Add a test for hashing of unaligned memory buffers (from issue #16427).
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 0e6e6ff9ff..fac64bcc69 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -2405,6 +2405,12 @@ PyObject * _PyBuiltin_Init(void) { PyObject *mod, *dict, *debug; + + if (PyType_Ready(&PyFilter_Type) < 0 || + PyType_Ready(&PyMap_Type) < 0 || + PyType_Ready(&PyZip_Type) < 0) + return NULL; + mod = PyModule_Create(&builtinsmodule); if (mod == NULL) return NULL; |