s = {1}
print(s.pop())
try:
    print(s.pop(), "!!!")
except KeyError:
    pass
else:
    print("Failed to raise KeyError")


@@ -118,8 +118,325 @@
 rror%22)%0A%0A
+# this tests an optimisation in mp_set_remove_first%0A# N must not be equal to one of the values in hash_allocation_sizes%0AN = 11%0As = set(range(N))%0Awhile s:%0A    print(s.pop()) # last pop() should trigger the optimisation%0Afor i in range(N):%0A    s.add(i) # check that we can add the numbers back to the set%0Aprint(list(s))%0A

Improve coverage of set functions.