mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Beef-up tests for collections ABCs.
This commit is contained in:
parent
1124e71368
commit
ae650181b8
2 changed files with 64 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue