mirror of https://github.com/python/cpython
Issue #19648: implement empty tests in pickletester. Patch by Gennadiy Zlobin.
This commit is contained in:
parent
473f45b4bc
commit
c1764dd350
|
@ -812,10 +812,18 @@ class AbstractPickleTests(unittest.TestCase):
|
||||||
self.assertEqual(self.dumps(1.2, 0)[0:3], b'F1.')
|
self.assertEqual(self.dumps(1.2, 0)[0:3], b'F1.')
|
||||||
|
|
||||||
def test_reduce(self):
|
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):
|
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):
|
def test_pop_empty_stack(self):
|
||||||
# Test issue7455
|
# Test issue7455
|
||||||
|
|
Loading…
Reference in New Issue