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

Method test_pickle

Lib/test/test_lzma.py:366–371  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

364 # Pickling raises an exception; there's no way to serialize an lzma_stream.
365
366 def test_pickle(self):
367 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
368 with self.assertRaises(TypeError):
369 pickle.dumps(LZMACompressor(), proto)
370 with self.assertRaises(TypeError):
371 pickle.dumps(LZMADecompressor(), proto)
372
373 @support.refcount_test
374 def test_refleaks_in_decompressor___init__(self):

Callers

nothing calls this directly

Calls 4

LZMACompressorClass · 0.85
LZMADecompressorClass · 0.85
assertRaisesMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected