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

Method test_pickle

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

Source from the content-addressed store, hash-verified

1995 copy.deepcopy(f)
1996
1997 def test_pickle(self):
1998 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
1999 with self.subTest(protocol=proto):
2000 f = self.writer(Queue(b''))
2001 with self.assertRaisesRegex(TypeError, 'StreamWriter'):
2002 pickle.dumps(f, proto)
2003
2004
2005class StreamReaderWriterTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected