Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ open
Method
open
Lib/test/test_zipfile/test_core.py:1844–1845 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
1842
zipfp.writestr(
'test/file'
, b
'newcontent'
)
1843
1844
def
open(self, path):
1845
return
zipfile.ZipFile(path,
'r'
)
1846
1847
def
extractall(self, ar):
1848
ar.extractall(self.testdir)
Callers
15
test_open_invalid_mode
Method · 0.45
execute
Method · 0.45
execute
Method · 0.45
test_open_binary
Method · 0.45
test_open_text_default_encoding
Method · 0.45
test_open_text_given_encoding
Method · 0.45
test_open_text_with_errors
Method · 0.45
test_open_binary_FileNotFoundError
Method · 0.45
test_open_text_FileNotFoundError
Method · 0.45
test_open_common
Method · 0.45
test_open_unbuffered
Method · 0.45
test_touch_nochange
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected