Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ write
Method
write
Lib/test/test_tarfile.py:1732–1735 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
1730
class
BadFile(io.BytesIO):
1731
first = True
1732
def
write(self, data):
1733
if
self.first:
1734
self.first = False
1735
raise
exctype
1736
1737
f = BadFile()
1738
with
(
Callers
15
test_ignore_zeros
Method · 0.45
test_init_close_fobj
Method · 0.45
_setup_symlink_to_target
Method · 0.45
test_detect_stream_bz2
Method · 0.45
_fs_supports_holes
Method · 0.45
test_pax_header_bad_formats
Method · 0.45
test_tar_size
Method · 0.45
test_file_size
Method · 0.45
test_gettarinfo_pathlike_name
Method · 0.45
test_link_size
Method · 0.45
test_extractall_symlinks
Method · 0.45
setUpClass
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected