summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/set_copy.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/set_copy.py')
-rw-r--r--tests/basics/set_copy.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/set_copy.py b/tests/basics/set_copy.py
new file mode 100644
index 0000000000..2ea308b0db
--- /dev/null
+++ b/tests/basics/set_copy.py
@@ -0,0 +1,8 @@
+s = {1, 2, 3, 4}
+t = s.copy()
+s.add(5)
+t.add(7)
+for i in s, t:
+ l = list(i)
+ l.sort()
+ print(l)