Commit 1faa46c0 authored by Stefan Behnel's avatar Stefan Behnel

make a doctest cover pypy's error message

parent 49688b0b
......@@ -90,14 +90,14 @@ def item_creation_sideeffect(L, sideeffect, unhashable):
>>> L = []
>>> item_creation_sideeffect(L, sideeffect, unhashable) # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError:... unhashable ...
TypeError: ...unhashable...
>>> L
[2, 4]
>>> L = []
>>> {1:2, sideeffect(2): 3, 3: 4, unhashable(4): 5, sideeffect(5): 6} # doctest: +ELLIPSIS
Traceback (most recent call last):
TypeError:... unhashable ...
TypeError: ...unhashable...
>>> L
[2, 4]
"""
......
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