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

Method run_clinic

Lib/test/test_clinic.py:2950–2957  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

2948 save_restore_converters(self)
2949
2950 def run_clinic(self, *args):
2951 with (
2952 support.captured_stdout() as out,
2953 support.captured_stderr() as err,
2954 self.assertRaises(SystemExit) as cm
2955 ):
2956 clinic.main(args)
2957 return out.getvalue(), err.getvalue(), cm.exception.code
2958
2959 def expect_success(self, *args):
2960 out, err, code = self.run_clinic(*args)

Callers 2

expect_successMethod · 0.95
expect_failureMethod · 0.95

Calls 3

assertRaisesMethod · 0.45
mainMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected