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

Method dont_test_disassembly

Lib/test/pickletester.py:2607–2616  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 5

getvalueMethod · 0.95
StringIOClass · 0.90
disFunction · 0.90
dumpsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected