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

Method test_pickling

Lib/test/datetimetester.py:1718–1725  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1716 self.assertEqual(t.tm_isdst, -1)
1717
1718 def test_pickling(self):
1719 args = 6, 7, 23
1720 orig = self.theclass(*args)
1721 for pickler, unpickler, proto in pickle_choices:
1722 green = pickler.dumps(orig, proto)
1723 derived = unpickler.loads(green)
1724 self.assertEqual(orig, derived)
1725 self.assertEqual(orig.__reduce__(), orig.__reduce_ex__(2))
1726
1727 def test_compat_unpickle(self):
1728 tests = [

Callers

nothing calls this directly

Calls 5

dumpsMethod · 0.45
loadsMethod · 0.45
assertEqualMethod · 0.45
__reduce__Method · 0.45
__reduce_ex__Method · 0.45

Tested by

no test coverage detected