summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/list_remove.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/list_remove.py')
-rw-r--r--tests/basics/list_remove.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/basics/list_remove.py b/tests/basics/list_remove.py
new file mode 100644
index 0000000000..81b2b3d973
--- /dev/null
+++ b/tests/basics/list_remove.py
@@ -0,0 +1,9 @@
+a = [1, 2, 3]
+print(a.remove(2))
+print(a)
+try:
+ a.remove(2)
+except ValueError:
+ print("Raised ValueError")
+else:
+ raise AssertionError("Did not raise ValueError")