[Zodb-checkins] CVS: ZODB3/persistent/tests - test_pickle.py:1.3

Tim Peters tim.one at comcast.net
Mon Dec 29 17:41:24 EST 2003


Update of /cvs-repository/ZODB3/persistent/tests
In directory cvs.zope.org:/tmp/cvs-serv2051/persistent/tests

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


=== ZODB3/persistent/tests/test_pickle.py 1.2 => 1.3 ===
--- ZODB3/persistent/tests/test_pickle.py:1.2	Fri Nov 28 11:44:56 2003
+++ ZODB3/persistent/tests/test_pickle.py	Mon Dec 29 17:40:50 2003
@@ -55,7 +55,7 @@
 
     >>> print_dict(x.__getstate__())
     {'__name__': 'x', 'aaa': 1, 'bbb': 'foo'}
-    
+
     >>> f, (c,), state = x.__reduce__()
     >>> f.__name__
     '__newobj__'
@@ -63,10 +63,10 @@
     'copy_reg'
     >>> c.__name__
     'Simple'
-    
+
     >>> print_dict(state)
     {'__name__': 'x', 'aaa': 1, 'bbb': 'foo'}
-    
+
     >>> pickle.loads(pickle.dumps(x)) == x
     1
     >>> pickle.loads(pickle.dumps(x, 0)) == x
@@ -116,7 +116,7 @@
     'Custom'
     >>> ax, ay, a
     ('x', 'y', 99)
-    
+
     >>> pickle.loads(pickle.dumps(x)) == x
     1
     >>> pickle.loads(pickle.dumps(x, 0)) == x
@@ -125,7 +125,7 @@
     1
     >>> pickle.loads(pickle.dumps(x, 2)) == x
     1
-    
+
     """
 
 class Slotted(Persistent):
@@ -141,7 +141,7 @@
         Slotted.__init__(self, s1, s2)
         self.s3 = s3
 
-        
+
     def __cmp__(self, other):
         return cmpattrs(self, other, '__class__', 's1', 's2', 's3', 's4')
 
@@ -157,7 +157,7 @@
     >>> d
     >>> print_dict(s)
     {'s1': 'x', 's2': 'y', 's3': 'z'}
-    
+
     >>> pickle.loads(pickle.dumps(x)) == x
     1
     >>> pickle.loads(pickle.dumps(x, 0)) == x
@@ -168,12 +168,12 @@
     1
 
     >>> x.s4 = 'spam'
-    
+
     >>> d, s = x.__getstate__()
     >>> d
     >>> print_dict(s)
     {'s1': 'x', 's2': 'y', 's3': 'z', 's4': 'spam'}
-    
+
     >>> pickle.loads(pickle.dumps(x)) == x
     1
     >>> pickle.loads(pickle.dumps(x, 0)) == x
@@ -192,7 +192,7 @@
         self.__dict__.update(kw)
         self._v_favorite_color = 'blue'
         self._p_foo = 'bar'
-        
+
     def __cmp__(self, other):
         return cmpattrs(self, other,
                         '__class__', 's1', 's2', 's3', 's4',
@@ -210,7 +210,7 @@
     {'aaa': 1, 'bbb': 'foo'}
     >>> print_dict(s)
     {'s1': 'x', 's2': 'y', 's3': 'z'}
-    
+
     >>> pickle.loads(pickle.dumps(x)) == x
     1
     >>> pickle.loads(pickle.dumps(x, 0)) == x
@@ -221,7 +221,7 @@
     1
 
     >>> x.s4 = 'spam'
-    
+
     >>> d, s = x.__getstate__()
     >>> print_dict(d)
     {'aaa': 1, 'bbb': 'foo'}
@@ -251,7 +251,7 @@
     {}
     >>> print_dict(s)
     {'s1': 'x', 's2': 'y', 's3': 'z'}
-    
+
     >>> pickle.loads(pickle.dumps(x)) == x
     1
     >>> pickle.loads(pickle.dumps(x, 0)) == x
@@ -262,7 +262,7 @@
     1
 
     >>> x.s4 = 'spam'
-    
+
     >>> d, s = x.__getstate__()
     >>> print_dict(d)
     {}
@@ -289,6 +289,3 @@
         ))
 
 if __name__ == '__main__': unittest.main()
-
-
-




More information about the Zodb-checkins mailing list