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

Method test_appends_on_non_lists

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

Source from the content-addressed store, hash-verified

3831 self.assertEqual(obj, unpickled)
3832
3833 def test_appends_on_non_lists(self):
3834 # Issue #17720
3835 obj = REX_six([1, 2, 3])
3836 for proto in protocols:
3837 with self.subTest(proto=proto):
3838 if proto == 0:
3839 self._check_pickling_with_opcode(obj, pickle.APPEND, proto)
3840 else:
3841 if self.py_version < (3, 0):
3842 self.skipTest('not supported in Python 2')
3843 self._check_pickling_with_opcode(obj, pickle.APPENDS, proto)
3844
3845 def test_setitems_on_non_dicts(self):
3846 obj = REX_seven({1: -1, 2: -2, 3: -3})

Callers

nothing calls this directly

Calls 4

REX_sixClass · 0.85
skipTestMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected