Commit 20525cd2 authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #19648: implement empty tests in pickletester. Patch by Gennadiy Zlobin.

parent f82ebf46
......@@ -812,10 +812,18 @@ class AbstractPickleTests(unittest.TestCase):
self.assertEqual(self.dumps(1.2, 0)[0:3], b'F1.')
def test_reduce(self):
pass
for proto in protocols:
inst = AAA()
dumped = self.dumps(inst, proto)
loaded = self.loads(dumped)
self.assertEqual(loaded, REDUCE_A)
def test_getinitargs(self):
pass
for proto in protocols:
inst = initarg(1, 2)
dumped = self.dumps(inst, proto)
loaded = self.loads(dumped)
self.assert_is_copy(inst, loaded)
def test_pop_empty_stack(self):
# Test issue7455
......
......@@ -1456,4 +1456,5 @@ Uwe Zessin
Cheng Zhang
Kai Zhu
Tarek Ziadé
Gennadiy Zlobin
Peter Åstrand
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment