From 8c3858b01623f9527b57b13c44ff97c67bafb00b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 19 Jan 2014 18:41:55 +0200 Subject: Move tests in basic/tests/ up one level preparating to multiple test dirs. --- tests/basics/set_remove.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/basics/set_remove.py (limited to 'tests/basics/set_remove.py') diff --git a/tests/basics/set_remove.py b/tests/basics/set_remove.py new file mode 100644 index 000000000..208ab137f --- /dev/null +++ b/tests/basics/set_remove.py @@ -0,0 +1,9 @@ +s = {1} +print(s.remove(1)) +print(list(s)) +try: + print(s.remove(1), "!!!") +except KeyError: + pass +else: + print("failed to raise KeyError") -- cgit v1.2.3