Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ setUp
Method
setUp
Lib/test/test_optparse.py:439–440 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
437
438
class
TestTypeAliases(BaseTest):
439
def
setUp(self):
440
self.parser = OptionParser()
441
442
def
test_str_aliases_string(self):
443
self.parser.add_option(
"-s"
, type=
"str"
)
Callers
nothing calls this directly
Calls
1
OptionParser
Class · 0.90
Tested by
no test coverage detected