Commit 101213c1 authored by Tres Seaver's avatar Tres Seaver

Tag 4.0.5 release.

parents c2de0c4f 034f9cb9
``persistent`` Changelog
========================
4.0.5 (2012-12-13)
4.0.5 (2012-12-14)
------------------
- Fixed the C-extensions under Py3k (previously they compiled but were
......
......@@ -430,13 +430,13 @@ pickle___getstate__(PyObject *self)
for (i = 0; i < PyList_GET_SIZE(slotnames); i++)
{
PyObject *name, *value;
char *cname;
int is_special;
name = PyList_GET_ITEM(slotnames, i);
#ifdef PY3K
if (PyUnicode_Check(name))
{
char *cname;
int is_special;
PyObject *converted = convert_name(name);
cname = PyBytes_AS_STRING(converted);
#else
......
......@@ -1354,7 +1354,13 @@ else:
self.assertRaises(TypeError, self._callFUT, '')
def test_w_type(self):
for typ in (type, list, dict, tuple, object):
import sys
TO_CREATE = [type, list, tuple, object]
# Python 3.3 segfaults when destroying a dict created via
# PyType_GenericNew. See http://bugs.python.org/issue16676
if sys.version_info < (3, 3):
TO_CREATE.append(dict)
for typ in TO_CREATE:
self.assertTrue(isinstance(self._callFUT(typ), typ))
_add_to_suite.append(Test_simple_new)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment