[Zope-Checkins] SVN: Zope/branches/2.13/src/OFS/tests/testObjectManager.py Remove pointless test of Python's instance attr semantics.

Tres Seaver tseaver at palladion.com
Thu Feb 9 17:04:54 UTC 2012


Log message for revision 124352:
  Remove pointless test of Python's instance attr semantics.

Changed:
  U   Zope/branches/2.13/src/OFS/tests/testObjectManager.py

-=-
Modified: Zope/branches/2.13/src/OFS/tests/testObjectManager.py
===================================================================
--- Zope/branches/2.13/src/OFS/tests/testObjectManager.py	2012-02-09 17:04:44 UTC (rev 124351)
+++ Zope/branches/2.13/src/OFS/tests/testObjectManager.py	2012-02-09 17:04:54 UTC (rev 124352)
@@ -417,14 +417,6 @@
         si1 = SimpleItem('1')
         om['1'] = si1
         self.assertTrue(om.get('1') == si1)
-        # A contained item overwrites the method
-        self.assertTrue(hasattr(om.get, 'im_func'))
-        om.__dict__['get'] = si1
-        self.assertTrue(aq_base(om.get) is si1)
-        self.assertTrue(aq_base(om['get']) is si1)
-        # Once the object is gone, the method is back
-        del om['get']
-        self.assertTrue(hasattr(om.get, 'im_func'))
 
     def test_items(self):
         om = self._makeOne()



More information about the Zope-Checkins mailing list