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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/set1.py b/tests/basics/set1.py
index 6afd9eb5ef..6ea69e4f05 100644
--- a/tests/basics/set1.py
+++ b/tests/basics/set1.py
@@ -6,6 +6,10 @@ print(s)
s = {3, 4, 3, 1}
print(sorted(s))
+# expression in constructor
+s = {1 + len(s)}
+print(s)
+
# Sets are not hashable
try:
{s: 1}