mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue