Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit