Author: Manuel Jacob <[email protected]>
Branch: py3.5
Changeset: r90500:02636c123ae1
Date: 2017-03-02 22:22 +0100
http://bitbucket.org/pypy/pypy/changeset/02636c123ae1/
Log: Change recursive repr test in lib-python/3/test/test_functools.py.
Our implementation has a slightly different __repr__, but since
CPython changed it in commit
457fc9a69e7918e3c10319604903915c2f2ecd9a to be more similar to ours,
I decided to change the test instead of our implementation.
diff --git a/lib-python/3/test/test_functools.py
b/lib-python/3/test/test_functools.py
--- a/lib-python/3/test/test_functools.py
+++ b/lib-python/3/test/test_functools.py
@@ -233,21 +233,21 @@
f = self.partial(capture)
f.__setstate__((f, (), {}, {}))
try:
- self.assertEqual(repr(f), '%s(%s(...))' % (name, name))
+ self.assertEqual(repr(f), '%s(...)' % (name))
finally:
f.__setstate__((capture, (), {}, {}))
f = self.partial(capture)
f.__setstate__((capture, (f,), {}, {}))
try:
- self.assertEqual(repr(f), '%s(%r, %s(...))' % (name, capture,
name))
+ self.assertEqual(repr(f), '%s(%r, ...)' % (name, capture))
finally:
f.__setstate__((capture, (), {}, {}))
f = self.partial(capture)
f.__setstate__((capture, (), {'a': f}, {}))
try:
- self.assertEqual(repr(f), '%s(%r, a=%s(...))' % (name, capture,
name))
+ self.assertEqual(repr(f), '%s(%r, a=...)' % (name, capture))
finally:
f.__setstate__((capture, (), {}, {}))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit