summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sets.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-20 21:51:59 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-20 21:51:59 (GMT)
commitc9196bc88d4ed6bd808635fe7f64893cdb3cc704 (patch)
treebdf453f028945a26640a4135de9098cd57e1d598 /Lib/test/test_sets.py
parent5033b36c442c7a2d2c3637b7d8da16666c1a21ea (diff)
downloadcpython-c9196bc88d4ed6bd808635fe7f64893cdb3cc704.zip
cpython-c9196bc88d4ed6bd808635fe7f64893cdb3cc704.tar.gz
cpython-c9196bc88d4ed6bd808635fe7f64893cdb3cc704.tar.bz2
Rename popitem() to pop(). (An idea from SF patch 597444.)
Diffstat (limited to 'Lib/test/test_sets.py')
-rw-r--r--Lib/test/test_sets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sets.py b/Lib/test/test_sets.py
index 6c72b0e..22a9db5 100644
--- a/Lib/test/test_sets.py
+++ b/Lib/test/test_sets.py
@@ -292,10 +292,10 @@ class TestMutate(unittest.TestCase):
self.set.clear()
assert len(self.set) == 0, "Clearing set"
- def test_popitem(self):
+ def test_pop(self):
popped = {}
while self.set:
- popped[self.set.popitem()] = None
+ popped[self.set.pop()] = None
assert len(popped) == len(self.values), "Popping items"
for v in self.values:
assert v in popped, "Popping items"