Lichen

tests/mutual_import/main.py

601:adcdaeb19307
2017-02-19 Paul Boddie Fixed the context test and set operation to replace the local context with any applicable attribute context. Added a test of method rebinding that requires this fix. method-wrapper-for-context
     1 import A     2      3 print A                 # A     4 print A.C               # B.C     5 print A.C()             # <B.C instance>     6 print A.h               # A.h     7      8 print A.h(A.C())        # 1     9 print A.h(A.D())        # 3    10     11 from B import E    12     13 print A.h(E())          # 2