summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/list_clear.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/list_clear.py')
-rw-r--r--tests/basics/list_clear.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/list_clear.py b/tests/basics/list_clear.py
new file mode 100644
index 0000000000..406d7e8237
--- /dev/null
+++ b/tests/basics/list_clear.py
@@ -0,0 +1,4 @@
+# tests list.clear
+x = [1, 2, 3, 4]
+x.clear()
+print(x)