MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / read_msg

Method read_msg

tests/test_pyserver.py:59–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

57 return t, s
58
59 def read_msg(self):
60 finish = False
61 msg = ""
62 while finish == False:
63 m = self.socket.recv(1024 * 4)
64 m = m.decode("utf-8")
65 if m.startswith("@@PROCESSING"):
66 sys.stdout.write("Status msg: %s\n" % (msg,))
67 else:
68 msg += m
69
70 if msg.find("END@@") != -1:
71 finish = True
72
73 return msg
74
75 @unittest.skipIf(IS_PY313_OR_GREATER and sys.platform == "linux", "Flakey on Linux")
76 def test_completion_sockets_and_messages(self):

Calls 4

recvMethod · 0.80
decodeMethod · 0.45
writeMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected