(self)
| 3721 | copy.deepcopy(sr) |
| 3722 | |
| 3723 | def test_pickle(self): |
| 3724 | q = Queue(b'') |
| 3725 | codec = codecs.lookup('ascii') |
| 3726 | sr = codecs.StreamRecoder(q, codec.encode, codec.decode, |
| 3727 | encodings.ascii.StreamReader, encodings.ascii.StreamWriter) |
| 3728 | |
| 3729 | for proto in range(pickle.HIGHEST_PROTOCOL + 1): |
| 3730 | with self.subTest(protocol=proto): |
| 3731 | with self.assertRaisesRegex(TypeError, 'StreamRecoder'): |
| 3732 | pickle.dumps(sr, proto) |
| 3733 | |
| 3734 | |
| 3735 | @unittest.skipIf(_testinternalcapi is None, 'need _testinternalcapi module') |
nothing calls this directly
no test coverage detected