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

Function openfile

Lib/test/test_email/__init__.py:17–19  ·  view source on GitHub ↗
(filename, *args, **kws)

Source from the content-addressed store, hash-verified

15# helper code used by a number of test modules.
16
17def openfile(filename, *args, **kws):
18 path = os.path.join(os.path.dirname(landmark), 'data', filename)
19 return open(path, *args, **kws)
20
21
22# Base test class

Callers 15

test_as_stringMethod · 0.90
test_as_bytesMethod · 0.90
_make_audioMethod · 0.90
_make_imageMethod · 0.90
setUpMethod · 0.90
setUpMethod · 0.90
test_epilogueMethod · 0.90
test_default_typeMethod · 0.90

Calls 3

openFunction · 0.50
joinMethod · 0.45
dirnameMethod · 0.45

Tested by 15

test_as_stringMethod · 0.72
test_as_bytesMethod · 0.72
_make_audioMethod · 0.72
_make_imageMethod · 0.72
setUpMethod · 0.72
setUpMethod · 0.72
test_epilogueMethod · 0.72
test_default_typeMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…