summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/list_copy.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/tests/list_copy.py b/tests/basics/tests/list_copy.py
new file mode 100644
index 000000000..bc450782e
--- /dev/null
+++ b/tests/basics/tests/list_copy.py
@@ -0,0 +1,7 @@
+# list copy tests
+a = [1, 2, []]
+b = a.copy()
+a[-1].append(1)
+a.append(4)
+print(a)
+print(b)