MCPcopy Index your code
hub / github.com/RustPython/RustPython / dont_test_disassembly

Method dont_test_disassembly

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

Source from the content-addressed store, hash-verified

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.

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