You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Python 2.7, this code passes. On Python 3.7 it raises a BrokenMethodImplementation:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/andy/test/.tox/py37/lib/python3.7/site-packages/zope/interface/verify.py", line 105, in verifyObjectreturn _verify(iface, candidate, tentative, vtype='o')
File "/Users/andy/test/.tox/py37/lib/python3.7/site-packages/zope/interface/verify.py", line 97, in _verifyraise BrokenMethodImplementation(name, mess)
zope.interface.exceptions.BrokenMethodImplementation: The implementation of bar violates its contract
because implementation doesn't allow enough arguments.
The text was updated successfully, but these errors were encountered:
Verifying a class using
@provider
behaves differently on Python 2.7 vs. Python 3.7 with zope.interface 4.5.0:On Python 2.7, this code passes. On Python 3.7 it raises a
BrokenMethodImplementation
:The text was updated successfully, but these errors were encountered: