objset: Add frozenset tests, skippable if frozenset not available.

This commit is contained in:
Paul Sokolovsky
2014-05-10 16:54:23 +03:00
parent 43d4a6fa31
commit 37b0f33545
5 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
try:
frozenset
except NameError:
print("SKIP")
import sys
sys.exit()
s = frozenset({1, 2, 3, 4})
t = s.copy()
print(type(t))
for i in s, t:
print(sorted(i))