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

Method test_skip_invalid_stderr

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

Source from the content-addressed store, hash-verified

54class StdStreamTest(unittest.TestCase):
55
56 def test_skip_invalid_stderr(self):
57 parser = argparse.ArgumentParser()
58 with (
59 contextlib.redirect_stderr(None),
60 mock.patch('argparse._sys.exit')
61 ):
62 parser.exit(status=0, message='foo')
63
64 def test_skip_invalid_stdout(self):
65 parser = argparse.ArgumentParser()

Callers

nothing calls this directly

Calls 1

exitMethod · 0.95

Tested by

no test coverage detected