summaryrefslogtreecommitdiffstats
path: root/Lib/test/pickletester.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-01-28 22:34:11 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-01-28 22:34:11 (GMT)
commit47a6b13988a71b0ac0d471168138e31144bf1a32 (patch)
treee02c1e3a49e90dcae563253059f84481331acfed /Lib/test/pickletester.py
parent4e2491dbb132ec6327c1d3327878ea69bc938c1b (diff)
downloadcpython-47a6b13988a71b0ac0d471168138e31144bf1a32.zip
cpython-47a6b13988a71b0ac0d471168138e31144bf1a32.tar.gz
cpython-47a6b13988a71b0ac0d471168138e31144bf1a32.tar.bz2
Temporary hacks to arrange that the pickle tests relying on protocol 2
only get run by test_pickle.py now (& not by test_cpickle.py). This should be undone when protocol 2 is implemented in cPickle too. test_cpickle should pass again.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r--Lib/test/pickletester.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index 36b3702..1736c12 100644
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -324,6 +324,12 @@ class AbstractPickleTests(unittest.TestCase):
## print
## pickletools.dis(s)
+# 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