projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba61dc
)
Py3 test fix
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 21 Aug 2009 13:39:25 +0000
(15:39 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 21 Aug 2009 13:39:25 +0000
(15:39 +0200)
tests/run/delete.pyx
patch
|
blob
|
history
diff --git
a/tests/run/delete.pyx
b/tests/run/delete.pyx
index 917df2fcc0ecb6ba3136a3bb3e86f420becc27f7..be7c40f91e6db2fafc69a47cb9b59533c11cab1f 100644
(file)
--- a/
tests/run/delete.pyx
+++ b/
tests/run/delete.pyx
@@
-6,16
+6,16
@@
(False, True)
>>> del_item({1: 'a', 2: 'b'}, 1)
{2: 'b'}
->>> del_item(
range(10
), 2)
+>>> del_item(
list(range(10)
), 2)
[0, 1, 3, 4, 5, 6, 7, 8, 9]
>>> del_dict({1: 'a', 2: 'b'}, 1)
{2: 'b'}
->>> del_list(
range(5
), 3)
+>>> del_list(
list(range(5)
), 3)
[0, 1, 2, 4]
->>> del_int(
range(5
), 3)
+>>> del_int(
list(range(5)
), 3)
[0, 1, 2, 4]
->>> del_list_int(
range(5
), 3)
+>>> del_list_int(
list(range(5)
), 3)
[0, 1, 2, 4]
>>> del_int({-1: 'neg', 1: 'pos'}, -1)
{1: 'pos'}