[pypy-commit] pypy py3.5: Add a pickle test, passes
arigo
pypy.commits at gmail.com
Tue Aug 30 09:57:21 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r86741:f36adc8b3688
Date: 2016-08-30 15:56 +0200
http://bitbucket.org/pypy/pypy/changeset/f36adc8b3688/
Log: Add a pickle test, passes
diff --git a/pypy/interpreter/test/test_zzpickle_and_slow.py b/pypy/interpreter/test/test_zzpickle_and_slow.py
--- a/pypy/interpreter/test/test_zzpickle_and_slow.py
+++ b/pypy/interpreter/test/test_zzpickle_and_slow.py
@@ -82,6 +82,12 @@
def teardown_class(cls):
_detach_helpers(cls.space)
+ def test_pickle_basic(self):
+ import pickle
+ pckl = pickle.dumps((u'abc', 0))
+ result = pickle.loads(pckl)
+ assert result == (u'abc', 0)
+
def test_pickle_code(self):
def f():
return 42
More information about the pypy-commit
mailing list