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

Method test_pickle

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

Source from the content-addressed store, hash-verified

2016 copy.deepcopy(f)
2017
2018 def test_pickle(self):
2019 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
2020 with self.subTest(protocol=proto):
2021 f = codecs.StreamReaderWriter(Queue(b''), self.reader, self.writer)
2022 with self.assertRaisesRegex(TypeError, 'StreamReaderWriter'):
2023 pickle.dumps(f, proto)
2024
2025
2026class EncodedFileTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected