[Zope3-checkins] CVS: Zope3/src/zope/proxy/context/tests - test_wrapperinteraction.py:1.3

Philipp von Weitershausen philikon@philikon.de
Wed, 9 Apr 2003 07:44:28 -0400


Update of /cvs-repository/Zope3/src/zope/proxy/context/tests
In directory cvs.zope.org:/tmp/cvs-serv19761/tests

Modified Files:
	test_wrapperinteraction.py 
Log Message:
Commented a test out because of Jim's change in
src/zope/proxy/context/__init__.py


=== Zope3/src/zope/proxy/context/tests/test_wrapperinteraction.py 1.2 => 1.3 ===
--- Zope3/src/zope/proxy/context/tests/test_wrapperinteraction.py:1.2	Tue Apr  8 08:21:39 2003
+++ Zope3/src/zope/proxy/context/tests/test_wrapperinteraction.py	Wed Apr  9 07:44:27 2003
@@ -474,24 +474,29 @@
 
 class TestContextWrapperFactory(unittest.TestCase):
 
-    def testClassicClassWarning(self):
-        from types import ClassType
-        class Classic:
-            __metaclass__ = ClassType
-            def foo(self):
-                pass
+    pass
 
-        class BadClassic:
-            __metaclass__ = ClassType
-            def foo(self):
-                pass
-            foo = ContextMethod(foo)
+# XXX commented this test out because of Jim's change in
+# src/zope/proxy/context/__init__.py
 
-        # ok if there are no ContextDescriptors 
-        w = ContextWrapper(Classic(), None)
+##     def testClassicClassWarning(self):
+##         from types import ClassType
+##         class Classic:
+##             __metaclass__ = ClassType
+##             def foo(self):
+##                 pass
 
-        # raises if there is a ContextDescriptor
-        self.assertRaises(TypeError, ContextWrapper, BadClassic(), None)
+##         class BadClassic:
+##             __metaclass__ = ClassType
+##             def foo(self):
+##                 pass
+##             foo = ContextMethod(foo)
+
+##         # ok if there are no ContextDescriptors 
+##         w = ContextWrapper(Classic(), None)
+
+##         # raises if there is a ContextDescriptor
+##         self.assertRaises(TypeError, ContextWrapper, BadClassic(), None)
 
 def test_suite():
     return unittest.TestSuite((