[Zodb-checkins] CVS: Zope3/src/zope/interface/tests - test_declarations.py:1.6

Jim Fulton jim at zope.com
Mon Jun 2 11:46:16 EDT 2003


Update of /cvs-repository/Zope3/src/zope/interface/tests
In directory cvs.zope.org:/tmp/cvs-serv17955/src/zope/interface/tests

Modified Files:
	test_declarations.py 
Log Message:
Fixed a bug in setting implementation specifications on deeply-nested
classic classes.


=== Zope3/src/zope/interface/tests/test_declarations.py 1.5 => 1.6 ===
--- Zope3/src/zope/interface/tests/test_declarations.py:1.5	Mon Jun  2 07:08:29 2003
+++ Zope3/src/zope/interface/tests/test_declarations.py	Mon Jun  2 10:46:16 2003
@@ -169,6 +169,27 @@
     1
     """
 
+def test_classImplement_on_deeply_nested_classes():
+    """This test is in response to a bug found, which is why it's a bit
+    contrived
+
+    >>> from zope.interface import *
+    >>> class B1:
+    ...     pass
+    >>> class B2(B1):
+    ...     pass
+    >>> class B3(B2):
+    ...     pass
+    >>> class D:
+    ...     implements()
+    >>> class S(B3, D):
+    ...     implements()
+
+    This failed due to a bug in the code for finding __providedBy__
+    descriptors for old-style classes.
+
+    """
+
 def test_suite():
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(Test))




More information about the Zodb-checkins mailing list