[Zope-Checkins] CVS: ZODB/src/persistent/tests - persistenttestbase.py:1.4 test_overriding_attrs.py:1.7 test_pickle.py:1.6

Tim Peters tim.one at comcast.net
Mon Apr 19 17:19:41 EDT 2004


Update of /cvs-repository/ZODB/src/persistent/tests
In directory cvs.zope.org:/tmp/cvs-serv9699/src/persistent/tests

Modified Files:
	persistenttestbase.py test_overriding_attrs.py test_pickle.py 
Log Message:
Whitespace normalization.


=== ZODB/src/persistent/tests/persistenttestbase.py 1.3 => 1.4 ===
--- ZODB/src/persistent/tests/persistenttestbase.py:1.3	Sat Mar  6 10:38:47 2004
+++ ZODB/src/persistent/tests/persistenttestbase.py	Mon Apr 19 17:19:10 2004
@@ -351,7 +351,7 @@
 
         # verify that the inc is reflected:
         self.assertEqual(p2.x, p.x)
-        
+
         # This assertion would be invalid.  Interfaces
         # are compared by identity and copying doesn't
         # preserve identity. We would get false negatives due
@@ -370,4 +370,3 @@
 class BasePersistentTest(Test):
     klass = B
     has_dict = 0
-


=== ZODB/src/persistent/tests/test_overriding_attrs.py 1.6 => 1.7 ===
--- ZODB/src/persistent/tests/test_overriding_attrs.py:1.6	Fri Apr 16 11:58:10 2004
+++ ZODB/src/persistent/tests/test_overriding_attrs.py	Mon Apr 19 17:19:10 2004
@@ -26,7 +26,7 @@
 class SampleOverridingGetattr(Persistent):
     """Example of overriding __getattr__
     """
-    
+
     def __getattr__(self, name):
         """Get attributes that can't be gotten the usual way
 
@@ -59,7 +59,7 @@
         >>> o._p_deactivate()
         >>> o._p_changed
 
-        And now, if we ask for an attribute it doesn't have, 
+        And now, if we ask for an attribute it doesn't have,
 
         >>> o.eggs
         ('EGGS', False)
@@ -87,7 +87,7 @@
 
     The class will have the policy that variables with names starting
     with 'tmp_' will be volatile.
-    
+
     """
 
     def __init__(self, **kw):
@@ -107,7 +107,7 @@
         >>> o._p_changed
         0
         >>> o._p_oid
-        >>> o._p_jar        
+        >>> o._p_jar
         >>> o.x
         1
         >>> o.y
@@ -116,7 +116,7 @@
         AttributeError: y
 
         Next, we'll save the object in a database so that we can
-        deactivate it: 
+        deactivate it:
 
         >>> db = DB()
         >>> conn = db.open()
@@ -136,10 +136,10 @@
         0
 
         It works for missing attribes too:
-        
+
         >>> o._p_deactivate()
         >>> o._p_changed
-        
+
         >>> o.y
         Traceback (most recent call last):
         ...
@@ -179,9 +179,9 @@
         meth = getattr(self.__class__, name, None)
         if meth is None:
             raise AttributeError, name
-        
+
         return meth.__get__(self, self.__class__)
-        
+
 
     def __setattr__(self, name, value):
         """Set an attribute value
@@ -219,9 +219,9 @@
 
         >>> 'x' in o.__dict__
         False
-        
+
         Next, we'll save the object in a database so that we can
-        deactivate it: 
+        deactivate it:
 
         >>> db = DB()
         >>> conn = db.open()
@@ -243,7 +243,7 @@
         1
 
         Now, if commit:
-        
+
         >>> transaction.commit()
         >>> o._p_changed
         0
@@ -263,7 +263,7 @@
         0
         >>> o.tmp_foo
         3
-        
+
         We always close databases after we use them:
 
         >>> db.close()
@@ -288,7 +288,7 @@
 
         if not name.startswith('tmp_'):
             self._p_changed = 1
-        
+
     def __delattr__(self, name):
         """Delete an attribute value
 
@@ -321,7 +321,7 @@
         AttributeError: x
 
         Next, we'll save the object in a database so that we can
-        deactivate it: 
+        deactivate it:
 
         >>> db = DB()
         >>> conn = db.open()
@@ -348,7 +348,7 @@
         3
 
         Now, if commit:
-        
+
         >>> transaction.commit()
         >>> o._p_changed
         0
@@ -370,7 +370,7 @@
         Traceback (most recent call last):
         ...
         AttributeError: tmp_z
-        
+
         We always close databases after we use them:
 
         >>> db.close()
@@ -392,10 +392,10 @@
             return
 
         del self.__dict__['__secret__'][name]
-        
+
         if not name.startswith('tmp_'):
             self._p_changed = 1
-                    
+
 
 def test_suite():
     from doctest import DocTestSuite


=== ZODB/src/persistent/tests/test_pickle.py 1.5 => 1.6 ===
--- ZODB/src/persistent/tests/test_pickle.py:1.5	Thu Feb 19 13:13:34 2004
+++ ZODB/src/persistent/tests/test_pickle.py	Mon Apr 19 17:19:10 2004
@@ -70,7 +70,7 @@
     1
     >>> pickle.loads(pickle.dumps(x, 1)) == x
     1
-    
+
     XXX disable until Python 2.3.4 >>> pickle.loads(pickle.dumps(x, 2)) == x
     1
 
@@ -160,7 +160,7 @@
     1
     >>> pickle.loads(pickle.dumps(x, 1)) == x
     1
-    
+
     XXX disable until Python 2.3.4 >>> pickle.loads(pickle.dumps(x, 2)) == x
     1
 




More information about the Zope-Checkins mailing list