logilab.common.decorators.monkeypatch() of logilab-common 0.56.1 was working correctly in Python 3. logilab.common.decorators.monkeypatch() of logilab-common 0.56.2 fails with Python 3 and breaks whole test suite:
Traceback (most recent call last):
File
"/var/tmp/portage/dev-python/logilab-common-0.56.2/temp/test-3.2/usr/bin/pytest",
line 3, in <module>
from logilab.common.pytest import run
File
"/var/tmp/portage/dev-python/logilab-common-0.56.2/temp/test-3.2/usr/lib64/python3.2/site-packages/logilab/common/pytest.py",
line 124, in <module>
from logilab.common import testlib, STD_BLACKLIST
File
"/var/tmp/portage/dev-python/logilab-common-0.56.2/temp/test-3.2/usr/lib64/python3.2/site-packages/logilab/common/testlib.py",
line 346, in <module>
@monkeypatch(unittest.TestSuite)
File
"/var/tmp/portage/dev-python/logilab-common-0.56.2/temp/test-3.2/usr/lib64/python3.2/site-packages/logilab/common/decorators.py",
line 238, in decorator
setattr(klass, name, types.MethodType(func, None, klass))
TypeError: method expected 2 arguments, got 3
--
Arfrever Frehtes Taifersar Arahesis
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
