Author: Philip Jenvey <[email protected]>
Branch: stdlib-2.7.11
Changeset: r83206:56c29bf49518
Date: 2016-03-20 15:56 -0700
http://bitbucket.org/pypy/pypy/changeset/56c29bf49518/
Log: adjust recursive tests assuming cpython cPickle's impl details
diff --git a/lib-python/2.7/test/test_cpickle.py
b/lib-python/2.7/test/test_cpickle.py
--- a/lib-python/2.7/test/test_cpickle.py
+++ b/lib-python/2.7/test/test_cpickle.py
@@ -166,7 +166,9 @@
for name in dir(AbstractPickleTests):
if name.startswith('test_recursive_'):
func = getattr(AbstractPickleTests, name)
- if '_subclass' in name and '_and_inst' not in name:
+ if (test_support.check_impl_detail(pypy=True) or
+ '_subclass' in name and '_and_inst' not in name):
+ # PyPy's cPickle matches pure python pickle's behavior here
assert_args = RuntimeError, 'maximum recursion depth exceeded'
else:
assert_args = ValueError, "can't pickle cyclic objects"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit