MCPcopy Index your code
hub / github.com/RustPython/RustPython / invoke_pickle

Method invoke_pickle

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

Source from the content-addressed store, hash-verified

845 pickle.dump(data, f)
846
847 def invoke_pickle(self, *flags):
848 output = io.StringIO()
849 with contextlib.redirect_stdout(output):
850 pickle._main(args=[*flags, self.filename])
851 return self.text_normalize(output.getvalue())
852
853 def test_invocation(self):
854 # 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