Mercurial > public > mercurial-scm > hg-stable
diff tests/test-extensions-wrapfunction.py.out @ 34143:82bd4c5a81e5
extensions: fix wrapcommand/function of class instance
5361771f9714 changed _updatewrapper() to copy the __name__ attribute, but
not all callable objects has __name__.
Spotted by loading mq with extdiff.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 10 Sep 2017 23:37:14 +0900 |
parents | 47e52f079a57 |
children |
line wrap: on
line diff
--- a/tests/test-extensions-wrapfunction.py.out Tue Sep 12 09:13:02 2017 -0700 +++ b/tests/test-extensions-wrapfunction.py.out Sun Sep 10 23:37:14 2017 +0900 @@ -18,3 +18,4 @@ context manager [2, 0, 1, 'orig'] context manager [2, 1, 'orig'] context manager [2, 'orig'] +wrap callable object [0, 'orig']