summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/set1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/set1.py')
-rw-r--r--tests/basics/set1.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/set1.py b/tests/basics/set1.py
index 399c33eb68..6afd9eb5ef 100644
--- a/tests/basics/set1.py
+++ b/tests/basics/set1.py
@@ -5,3 +5,9 @@ print(s)
s = {3, 4, 3, 1}
print(sorted(s))
+
+# Sets are not hashable
+try:
+ {s: 1}
+except TypeError:
+ print("TypeError")