Author: Maciej Fijalkowski <fij...@gmail.com> Branch: Changeset: r78656:1caecf593f7c Date: 2015-07-24 14:59 +0200 http://bitbucket.org/pypy/pypy/changeset/1caecf593f7c/
Log: merge diff --git a/pypy/module/operator/test/test_operator.py b/pypy/module/operator/test/test_operator.py --- a/pypy/module/operator/test/test_operator.py +++ b/pypy/module/operator/test/test_operator.py @@ -10,13 +10,16 @@ class A(object): getx = operator.attrgetter('x') get3 = operator.itemgetter(3) + callx = operator.methodcaller("append", "x") a = A() a.x = 5 assert a.getx(a) == 5 assert a.get3("foobar") == "b" assert a.getx(*(a,)) == 5 assert a.get3(obj="foobar") == "b" - + l = [] + a.callx(l) + assert l == ["x"] def test_getter_multiple_gest(self): import operator _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit