Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ execute
Method
execute
Lib/test/test_importlib/resources/test_open.py:15–18 ·
view source on GitHub ↗
(self, package, path)
Source
from the content-addressed store, hash-verified
13
14
class
CommonTextTests(util.CommonTests, unittest.TestCase):
15
def
execute(self, package, path):
16
target = resources.files(package).joinpath(path)
17
with
target.open(encoding=
'utf-8'
):
18
pass
19
20
21
class
OpenTests:
Callers
nothing calls this directly
Calls
3
joinpath
Method · 0.45
files
Method · 0.45
open
Method · 0.45
Tested by
no test coverage detected