logilab-aspects #2860 pb with __init__ [open]
I am testing Logilab aspects 0.1.3 on Debian, but I cannot seem to get a contract to be enforced on any __init__ method. For instance, based on the documentation and the example provided with the package, I would expect the code below to raise a ContractFailedError, but it does not. Any ideas?
#! /usr/bin/env python from logilab.aspects.weaver import weaver from logilab.aspects.lib.contracts import ContractAspect class TestClass: def __init__(self): """ pre: False == True """ pass if __name__ == "__main__": weaver.weave_methods(TestClass, ContractAspect) test_obj = TestClass()
|appeared in||<not specified>|
|done in||<not specified>|
|closed by||<not specified>|