diff options
-rw-r--r-- | Lib/test/pickletester.py | 6 | ||||
-rw-r--r-- | Lib/test/test_pickle.py | 10 |
2 files changed, 13 insertions, 3 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 diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py index 24052b5..d30e084 100644 --- a/Lib/test/test_pickle.py +++ b/Lib/test/test_pickle.py @@ -1,11 +1,15 @@ import pickle import unittest from cStringIO import StringIO -from test.pickletester import AbstractPickleTests, AbstractPickleModuleTests, \ - AbstractPersistentPicklerTests + from test import test_support -class PickleTests(AbstractPickleTests, AbstractPickleModuleTests): +from test.pickletester import AbstractPickleTests +from test.pickletester import TempAbstractPickleTests as XXXTemp +from test.pickletester import AbstractPickleModuleTests +from test.pickletester import AbstractPersistentPicklerTests + +class PickleTests(AbstractPickleTests, AbstractPickleModuleTests, XXXTemp): def setUp(self): self.dumps = pickle.dumps |