summaryrefslogtreecommitdiffstats
path: root/Lib/test/pickletester.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-14 23:05:28 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-02-14 23:05:28 (GMT)
commit71fcda5ba72aeda1dbd4f11f8f2fcfda0236b865 (patch)
tree9f8eeb67a060fad7b12eb97c89a6831ee373f63c /Lib/test/pickletester.py
parent9cac1c4574877e06f5e5337ac34d6a5c93c73eb3 (diff)
downloadcpython-71fcda5ba72aeda1dbd4f11f8f2fcfda0236b865.zip
cpython-71fcda5ba72aeda1dbd4f11f8f2fcfda0236b865.tar.gz
cpython-71fcda5ba72aeda1dbd4f11f8f2fcfda0236b865.tar.bz2
cPickle produces NEWOBJ appropriately now. It still doesn't know
how to unpickle the new slot-full state tuples.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r--Lib/test/pickletester.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index e1a333b..57e051c 100644
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -718,12 +718,6 @@ class AbstractPickleTests(unittest.TestCase):
else:
self.failUnless(num_setitems >= 2)
-# XXX Temporary hack, so long as the C implementation of pickle protocol
-# XXX 2 isn't ready. When it is, move the methods in TempAbstractPickleTests
-# XXX into AbstractPickleTests above, and get rid of TempAbstractPickleTests
-# XXX along with the references to it in test_pickle.py.
-class TempAbstractPickleTests(unittest.TestCase):
-
def test_simple_newobj(self):
x = object.__new__(SimpleNewObj) # avoid __init__
x.abc = 666
@@ -734,6 +728,12 @@ class TempAbstractPickleTests(unittest.TestCase):
self.assertEqual(y.abc, 666)
self.assertEqual(x.__dict__, y.__dict__)
+# XXX Temporary hack, so long as the C implementation of pickle protocol
+# XXX 2 isn't ready. When it is, move the methods in TempAbstractPickleTests
+# XXX into AbstractPickleTests above, and get rid of TempAbstractPickleTests
+# XXX along with the references to it in test_pickle.py.
+class TempAbstractPickleTests(unittest.TestCase):
+
def test_newobj_list_slots(self):
x = SlotList([1, 2, 3])
x.foo = 42