Beef-up tests for collections ABCs.

This commit is contained in:
Raymond Hettinger 2009-01-28 23:33:59 +00:00
parent 1124e71368
commit ae650181b8
2 changed files with 64 additions and 3 deletions

View file

@ -301,7 +301,7 @@ class MutableSet(Set):
"""Return the popped value. Raise KeyError if empty."""
it = iter(self)
try:
value = it.__next__()
value = next(it)
except StopIteration:
raise KeyError
self.discard(value)