Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ openfile
Function
openfile
Lib/test/test_email/__init__.py:18–20 ·
view source on GitHub ↗
(filename, *args, **kws)
Source
from the content-addressed store, hash-verified
16
# helper code used by a number of test modules.
17
18
def
openfile(filename, *args, **kws):
19
path = os.path.join(os.path.dirname(landmark),
'data'
, filename)
20
return
open(path, *args, **kws)
21
22
23
# Base test class
Callers
15
test_message_rfc822_only
Method · 0.90
test_byte_message_rfc822_only
Method · 0.90
test_decoded_generator
Method · 0.90
test_as_string
Method · 0.90
test_as_bytes
Method · 0.90
test_EncodersEncode_base64
Method · 0.90
_make_audio
Method · 0.90
_make_image
Method · 0.90
setUp
Method · 0.90
setUp
Method · 0.90
test_epilogue
Method · 0.90
test_default_type
Method · 0.90
Calls
2
open
Function · 0.50
join
Method · 0.45
Tested by
15
test_message_rfc822_only
Method · 0.72
test_byte_message_rfc822_only
Method · 0.72
test_decoded_generator
Method · 0.72
test_as_string
Method · 0.72
test_as_bytes
Method · 0.72
test_EncodersEncode_base64
Method · 0.72
_make_audio
Method · 0.72
_make_image
Method · 0.72
setUp
Method · 0.72
setUp
Method · 0.72
test_epilogue
Method · 0.72
test_default_type
Method · 0.72