Author: Jean-Paul Calderone <[email protected]>
Branch: py3.5
Changeset: r92129:2586878e1a3c
Date: 2017-08-11 16:40 -0400
http://bitbucket.org/pypy/pypy/changeset/2586878e1a3c/
Log: A more precise assertion.
diff --git a/pypy/interpreter/test/test_function.py
b/pypy/interpreter/test/test_function.py
--- a/pypy/interpreter/test/test_function.py
+++ b/pypy/interpreter/test/test_function.py
@@ -57,6 +57,10 @@
f, args = X.y.__reduce__()
assert f(*args) == X.y
+ # This is perhaps overly specific. It's an attempt to be certain that
+ # pickle will actually work with this implementation.
+ assert f == getattr
+ assert args == (X, "y")
def test_annotations(self):
def f(): pass
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit