MCPcopy Index your code
hub / github.com/python/cpython / test_issue5949

Method test_issue5949

Lib/test/test_imaplib.py:830–839  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

828
829 @threading_helper.reap_threads
830 def test_issue5949(self):
831
832 class EOFHandler(socketserver.StreamRequestHandler):
833 def handle(self):
834 # EOF without sending a complete welcome message.
835 self.wfile.write(b'* OK')
836
837 with self.reaped_server(EOFHandler) as server:
838 self.assertRaises(imaplib.IMAP4.abort,
839 self.imap_class, *server.server_address)
840
841 @threading_helper.reap_threads
842 def test_line_termination(self):

Callers

nothing calls this directly

Calls 2

reaped_serverMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected