Commit f171aa71 authored by Stefan Behnel's avatar Stefan Behnel

test fix

parent b982881e
...@@ -164,8 +164,7 @@ def dict_comp(): ...@@ -164,8 +164,7 @@ def dict_comp():
# in Python 3, d.keys/values/items() are the iteration methods # in Python 3, d.keys/values/items() are the iteration methods
@cython.test_assert_path_exists( @cython.test_assert_path_exists(
"//WhileStatNode", "//WhileStatNode",
"//WhileStatNode/SimpleCallNode", "//WhileStatNode//DictIterationNextNode")
"//WhileStatNode/SimpleCallNode/NameNode")
@cython.test_fail_if_path_exists( @cython.test_fail_if_path_exists(
"//ForInStatNode") "//ForInStatNode")
def dict_iter(dict d): def dict_iter(dict d):
...@@ -178,6 +177,9 @@ def dict_iter(dict d): ...@@ -178,6 +177,9 @@ def dict_iter(dict d):
[1, 2, 3] [1, 2, 3]
>>> sorted(items) >>> sorted(items)
[('a', 1), ('b', 2), ('c', 3)] [('a', 1), ('b', 2), ('c', 3)]
>>> dict_iter({})
([], [], [])
""" """
keys = [ key for key in d.keys() ] keys = [ key for key in d.keys() ]
values = [ value for value in d.values() ] values = [ value for value in d.values() ]
......
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