Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
persistent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
persistent
Commits
101213c1
Commit
101213c1
authored
Dec 14, 2012
by
Tres Seaver
Browse files
Options
Browse Files
Download
Plain Diff
Tag 4.0.5 release.
parents
c2de0c4f
034f9cb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
CHANGES.txt
CHANGES.txt
+2
-1
persistent/cPersistence.c
persistent/cPersistence.c
+2
-2
persistent/tests/test_persistence.py
persistent/tests/test_persistence.py
+7
-1
No files found.
CHANGES.txt
View file @
101213c1
``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
...
...
persistent/cPersistence.c
View file @
101213c1
...
...
@@ -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
...
...
persistent/tests/test_persistence.py
View file @
101213c1
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment