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

Method get_output_without_xpeer

Lib/test/test_smtplib.py:277–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275 threading_helper.threading_cleanup(*self.thread_key)
276
277 def get_output_without_xpeer(self):
278 test_output = self.output.getvalue()
279 return re.sub(r'(.*?)^X-Peer:\s*\S+\n(.*)', r'\1\2',
280 test_output, flags=re.MULTILINE|re.DOTALL)
281
282 def testBasic(self):
283 # connect

Calls 2

getvalueMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected