Commit 40528a45 authored by Stefan Behnel's avatar Stefan Behnel

add test for hashing cyfunctions

parent 93202c5a
...@@ -42,6 +42,19 @@ def test_doc(): ...@@ -42,6 +42,19 @@ def test_doc():
'docstring' 'docstring'
""" """
def test_hash():
"""
>>> d = {test_hash: 123}
>>> test_hash in d
True
>>> d[test_hash]
123
>>> hash(test_hash) == hash(test_hash)
True
"""
def test_closure(): def test_closure():
""" """
>>> test_closure.func_closure is None >>> test_closure.func_closure is None
......
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