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

Method test_pickle

Lib/test/test_codecs.py:1977–1982  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1975 copy.deepcopy(f)
1976
1977 def test_pickle(self):
1978 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
1979 with self.subTest(protocol=proto):
1980 f = self.reader(Queue(b'\xed\x95\x9c\n\xea\xb8\x80'))
1981 with self.assertRaisesRegex(TypeError, 'StreamReader'):
1982 pickle.dumps(f, proto)
1983
1984
1985class StreamWriterTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 5

assertRaisesRegexMethod · 0.80
QueueClass · 0.70
subTestMethod · 0.45
readerMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected