Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ setUpClass
Method
setUpClass
Lib/test/test_tarfile.py:2049–2051 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
2047
2048
@classmethod
2049
def
setUpClass(cls):
2050
with
open(cls.file_path,
"wb"
)
as
fobj:
2051
fobj.write(b
"aaa"
)
2052
2053
@classmethod
2054
def
tearDownClass(cls):
Callers
nothing calls this directly
Calls
2
open
Function · 0.50
write
Method · 0.45
Tested by
no test coverage detected