mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
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.
This commit is contained in:
parent
4e2491dbb1
commit
47a6b13988
2 changed files with 13 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue