[Zope3-checkins] CVS: Zope3/src/zope/context/tests - test_wrapperinteraction.py:1.10
Steve Alexander
steve@cat-box.net
Thu, 19 Jun 2003 13:25:20 -0400
Update of /cvs-repository/Zope3/src/zope/context/tests
In directory cvs.zope.org:/tmp/cvs-serv9803/src/zope/context/tests
Modified Files:
test_wrapperinteraction.py
Log Message:
Fix to collector issue http://collector.zope.org/Zope3-dev/171
Thanks for Philipp von W. for reporting the bug and providing a concise
test case.
=== Zope3/src/zope/context/tests/test_wrapperinteraction.py 1.9 => 1.10 ===
--- Zope3/src/zope/context/tests/test_wrapperinteraction.py:1.9 Sat Jun 14 08:53:28 2003
+++ Zope3/src/zope/context/tests/test_wrapperinteraction.py Thu Jun 19 13:25:19 2003
@@ -591,6 +591,22 @@
# descriptor. The rest is covered by the ContextAware(Data)Descriptor
# unit tests.
+ def test_implementsInSubclassInteraction(self):
+ from zope.interface import implements
+ from zope.context import ContextAwareDescriptors
+
+ class Bar:
+ implements()
+ ContextAwareDescriptors()
+
+ # If __providedBy__ is made context-aware, this will fail with a
+ # TypeError.
+ # If __implements__ is made context-aware, this will fail with a
+ # BadImplements error.
+ class Foo(Bar):
+ implements()
+
+
def test_suite():
return unittest.TestSuite((
unittest.makeSuite(TestNewStyleClass),