Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
34
class
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_message
Method · 0.45
Calls
2
openfile
Function · 0.70
close
Method · 0.45
Tested by
no test coverage detected