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

Method _msgobj

Lib/test/test_email/torture_test.py:35–41  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

33
34class TortureBase(TestEmailBase):
35 def _msgobj(self, filename):
36 fp = openfile(filename)
37 try:
38 msg = email.message_from_file(fp)
39 finally:
40 fp.close()
41 return msg
42
43
44

Callers 1

test_mondo_messageMethod · 0.45

Calls 2

openfileFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected