Commit 5bd5b12b authored by Stefan Behnel's avatar Stefan Behnel

add frozenset(frozenset) test to cover a C level special case

parent 7defba54
...@@ -282,6 +282,12 @@ def test_frozenset_of_iterable(x): ...@@ -282,6 +282,12 @@ def test_frozenset_of_iterable(x):
True True
>>> sorted(s) >>> sorted(s)
[1, 2, 3] [1, 2, 3]
>>> s = test_frozenset_of_iterable(_frozenset([1, 2, 3]))
>>> isinstance(s, _frozenset)
True
>>> sorted(s)
[1, 2, 3]
""" """
return frozenset(x) return frozenset(x)
......
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