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

Method invoke_pickle

Lib/test/test_pickle.py:776–780  ·  view source on GitHub ↗
(self, *flags)

Source from the content-addressed store, hash-verified

774 pickle.dump(data, f)
775
776 def invoke_pickle(self, *flags):
777 output = io.StringIO()
778 with contextlib.redirect_stdout(output):
779 pickle._main(args=[*flags, self.filename])
780 return self.text_normalize(output.getvalue())
781
782 def test_invocation(self):
783 # test 'python -m pickle pickle_file'

Callers 2

test_invocationMethod · 0.95
test_unknown_flagMethod · 0.95

Calls 2

text_normalizeMethod · 0.95
getvalueMethod · 0.95

Tested by

no test coverage detected