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

Method test_callapi

Lib/test/pickletester.py:4830–4838  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4828 self.assertEqual(pickle.HIGHEST_PROTOCOL, 5)
4829
4830 def test_callapi(self):
4831 f = io.BytesIO()
4832 # With and without keyword arguments
4833 self.dump(123, f, -1)
4834 self.dump(123, file=f, protocol=-1)
4835 self.dumps(123, -1)
4836 self.dumps(123, protocol=-1)
4837 self.Pickler(f, -1)
4838 self.Pickler(f, protocol=-1)
4839
4840 def test_dump_text_file(self):
4841 f = open(TESTFN, "w")

Callers

nothing calls this directly

Calls 2

dumpsMethod · 0.95
dumpMethod · 0.45

Tested by

no test coverage detected