(self)
| 2605 | # is a mystery. cPickle also suppresses PUT for objects with a refcount |
| 2606 | # of 1. |
| 2607 | def dont_test_disassembly(self): |
| 2608 | from io import StringIO |
| 2609 | from pickletools import dis |
| 2610 | |
| 2611 | for proto, expected in (0, DATA0_DIS), (1, DATA1_DIS): |
| 2612 | s = self.dumps(self._testdata, proto) |
| 2613 | filelike = StringIO() |
| 2614 | dis(s, out=filelike) |
| 2615 | got = filelike.getvalue() |
| 2616 | self.assertEqual(expected, got) |
| 2617 | |
| 2618 | def _test_recursive_list(self, cls, aslist=identity, minprotocol=0): |
| 2619 | # List containing itself. |
nothing calls this directly
no test coverage detected