Index: Lib/test/test_poplib.py =================================================================== --- Lib/test/test_poplib.py (revision 74311) +++ Lib/test/test_poplib.py (working copy) @@ -104,6 +104,8 @@ def cmd_rpop(self, arg): self.push('+OK done nothing.') + def cmd_apop(self, arg): + self.push('+OK done nothing.') class DummyPOP3Server(asyncore.dispatcher, threading.Thread): @@ -209,6 +211,9 @@ def test_rpop(self): self.assertOK(self.client.rpop('foo')) + def test_apop(self): + self.assertOK(self.client.apop('foo', 'dummypassword')) + def test_top(self): expected = (b'+OK 116 bytes', [b'From: postmaster@python.org', b'Content-Type: text/plain',