[Zope-Checkins] CVS: ZODB/src/Persistence/tests -
test_ExtensionClass.py:1.4
Jeremy Hylton
jeremy at zope.com
Fri Feb 20 12:12:39 EST 2004
Update of /cvs-repository/ZODB/src/Persistence/tests
In directory cvs.zope.org:/tmp/cvs-serv26439
Modified Files:
test_ExtensionClass.py
Log Message:
Fix tests: Persistent does not provide a default __getnewargs__() anymore.
I can't figure out how these tests were passing in a Zope checkout.
They failed for a ZODB checkout.
=== ZODB/src/Persistence/tests/test_ExtensionClass.py 1.3 => 1.4 ===
--- ZODB/src/Persistence/tests/test_ExtensionClass.py:1.3 Mon Dec 29 17:40:46 2003
+++ ZODB/src/Persistence/tests/test_ExtensionClass.py Fri Feb 20 12:12:39 2004
@@ -281,9 +281,6 @@
"""
>>> x = Simple('x', aaa=1, bbb='foo')
- >>> x.__getnewargs__()
- ()
-
>>> print_dict(x.__getstate__())
{'__name__': 'x', 'aaa': 1, 'bbb': 'foo'}
@@ -381,9 +378,6 @@
"""
>>> x = SubSlotted('x', 'y', 'z')
- >>> x.__getnewargs__()
- ()
-
>>> d, s = x.__getstate__()
>>> d
>>> print_dict(s)
@@ -433,9 +427,6 @@
"""
>>> x = SubSubSlotted('x', 'y', 'z', aaa=1, bbb='foo')
- >>> x.__getnewargs__()
- ()
-
>>> d, s = x.__getstate__()
>>> print_dict(d)
{'aaa': 1, 'bbb': 'foo'}
@@ -473,9 +464,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 Zope-Checkins
mailing list