[Zope3-checkins] CVS: Zope3/src/zope/app/interface/tests -
test_interface.py:1.1.8.1
Martijn Faassen
m.faassen at vet.uu.nl
Fri May 7 06:37:08 EDT 2004
Update of /cvs-repository/Zope3/src/zope/app/interface/tests
In directory cvs.zope.org:/tmp/cvs-serv4538/src/zope/app/interface/tests
Modified Files:
Tag: faassen-interfaces-branch
test_interface.py
Log Message:
Change __implements__ to __implemented__ to avoid clash with Zope 2
interfaces. The Zope 3 tests run; the Zope 2 integration still needs to be
tested further.
Note that this change destroys any backwards compatibility code to support
old style __implements__ usage. We need to decide whether this backwards
compatibility should go (my recommendation) or whether there are reasons
to keep supporting this. The one possible reason I can come up with is
FrankenZope, but this alternative form of Zope 3 integration into Zope 2
is supposed to make FrankenZope unnecessary.
=== Zope3/src/zope/app/interface/tests/test_interface.py 1.1 => 1.1.8.1 ===
--- Zope3/src/zope/app/interface/tests/test_interface.py:1.1 Thu Mar 11 06:03:37 2004
+++ Zope3/src/zope/app/interface/tests/test_interface.py Fri May 7 06:36:37 2004
@@ -32,7 +32,7 @@
pass
class Foo:
- __implements__ = IFoo
+ __implemented__ = IFoo
aFoo = Foo()
"""
@@ -54,7 +54,7 @@
pass
class Foo:
- __implements__ = IFoo
+ __implemented__ = IFoo
self.assert_(IFoo.providedBy(Foo()))
self.assertEqual(IFoo._p_oid, None)
@@ -65,7 +65,7 @@
imodule = self.registry.findModule("imodule")
# test for a pickling bug
- self.assertEqual(imodule.Foo.__implements__, imodule.IFoo)
+ self.assertEqual(imodule.Foo.__implemented__, imodule.IFoo)
self.assert_(imodule.IFoo.providedBy(imodule.aFoo))
# the conversion should not affect Interface
More information about the Zope3-Checkins
mailing list