(self)
| 2502 | # is a mystery. cPickle also suppresses PUT for objects with a refcount |
| 2503 | # of 1. |
| 2504 | def dont_test_disassembly(self): |
| 2505 | from io import StringIO |
| 2506 | from pickletools import dis |
| 2507 | |
| 2508 | for proto, expected in (0, DATA0_DIS), (1, DATA1_DIS): |
| 2509 | s = self.dumps(self._testdata, proto) |
| 2510 | filelike = StringIO() |
| 2511 | dis(s, out=filelike) |
| 2512 | got = filelike.getvalue() |
| 2513 | self.assertEqual(expected, got) |
| 2514 | |
| 2515 | def _test_recursive_list(self, cls, aslist=identity, minprotocol=0): |
| 2516 | # List containing itself. |
nothing calls this directly
no test coverage detected