Comment 1 for bug 1096513

Revision history for this message
Barry Warsaw (barry) wrote :

Well, hmm... this seems to be a big problem:

File "/home/barry/projects/lazr/lp1096513/src/lazr/delegates/README.rst", line 63, in README.rst
Failed example:
    class SomeClass(object):
        delegates(IFoo)
        def __init__(self, context):
            self.context = context
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.3/doctest.py", line 1287, in __run
        compileflags, 1), test.globs)
      File "<doctest README.rst[6]>", line 1, in <module>
        class SomeClass(object):
      File "<doctest README.rst[6]>", line 2, in SomeClass
        delegates(IFoo)
      File "/home/barry/projects/lazr/lp1096513/src/lazr/delegates/_delegates.py", line 91, in delegates
        addClassAdvisor(_delegates_advice, depth=2)
      File "/home/barry/projects/lazr/lp1096513/zope.interface-4.0.3-py3.3-linux-x86_64.egg/zope/interface/advice.py", line 100, in addClassAdvisor
        raise TypeError('Class advice impossible in Python3')
    TypeError: Class advice impossible in Python3