MCPcopy Index your code
hub / github.com/python/cpython / setUp

Method setUp

Lib/test/test_argparse.py:7292–7297  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7290 maxDiff = None
7291
7292 def setUp(self):
7293 super().setUp()
7294 # Ensure color even if ran with NO_COLOR=1
7295 self.enterContext(swap_attr(_colorize, 'can_colorize',
7296 lambda *args, **kwargs: True))
7297 self.theme = _colorize.get_theme(force_color=True).argparse
7298
7299 def test_argparse_color(self):
7300 # Arrange: create a parser with a bit of everything

Callers

nothing calls this directly

Calls 4

swap_attrFunction · 0.90
superClass · 0.85
enterContextMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected