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

Function openfile

Lib/test/test_email/torture_test.py:20–23  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

18from email.iterators import _structure
19
20def openfile(filename):
21 from os.path import join, dirname, abspath
22 path = abspath(join(dirname(testfile), os.pardir, 'moredata', filename))
23 return open(path, 'r')
24
25# Prevent this test from running in the Python distro
26def setUpModule():

Callers 2

setUpModuleFunction · 0.70
_msgobjMethod · 0.70

Calls 4

abspathFunction · 0.90
joinFunction · 0.90
dirnameFunction · 0.90
openFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…