[Zodb-checkins] CVS: ZODB/src/persistent/tests - test_pickle.py:1.3.2.2

Fred L. Drake, Jr. fred at zope.com
Wed Feb 18 18:09:54 EST 2004


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

Modified Files:
      Tag: zope3-zodb3-devel-branch
	test_pickle.py 
Log Message:
persistent objects no longer get a default __getnewargs__()


=== ZODB/src/persistent/tests/test_pickle.py 1.3.2.1 => 1.3.2.2 ===
--- ZODB/src/persistent/tests/test_pickle.py:1.3.2.1	Sat Feb  7 23:30:10 2004
+++ ZODB/src/persistent/tests/test_pickle.py	Wed Feb 18 18:09:54 2004
@@ -50,9 +50,6 @@
     """
     >>> x = Simple('x', aaa=1, bbb='foo')
 
-    >>> x.__getnewargs__()
-    ()
-
     >>> print_dict(x.__getstate__())
     {'__name__': 'x', 'aaa': 1, 'bbb': 'foo'}
 
@@ -152,9 +149,6 @@
     """
     >>> x = SubSlotted('x', 'y', 'z')
 
-    >>> x.__getnewargs__()
-    ()
-
     >>> d, s = x.__getstate__()
     >>> d
     >>> print_dict(s)
@@ -206,9 +200,6 @@
     """
     >>> x = SubSubSlotted('x', 'y', 'z', aaa=1, bbb='foo')
 
-    >>> x.__getnewargs__()
-    ()
-
     >>> d, s = x.__getstate__()
     >>> print_dict(d)
     {'aaa': 1, 'bbb': 'foo'}
@@ -248,9 +239,6 @@
 def test_pickling_w_slots_w_empty_dict():
     """
     >>> x = SubSubSlotted('x', 'y', 'z')
-
-    >>> x.__getnewargs__()
-    ()
 
     >>> d, s = x.__getstate__()
     >>> print_dict(d)




More information about the Zodb-checkins mailing list