[Python-checkins] python/dist/src/Lib/test pickletester.py,1.47,1.48

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2003年2月13日 07:45:15 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv24734/Lib/test
Modified Files:
	pickletester.py 
Log Message:
Added a HIGHEST_PROTOCOL module attribute to pickle and cPickle.
Index: pickletester.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/pickletester.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** pickletester.py	11 Feb 2003 22:43:24 -0000	1.47
--- pickletester.py	13 Feb 2003 15:44:40 -0000	1.48
***************
*** 1,4 ****
--- 1,5 ----
 import unittest
 import pickle
+ import cPickle
 import pickletools
 import copy_reg
***************
*** 8,13 ****
 # Tests that try a number of pickle protocols should have a
 # for proto in protocols:
! # kind of outer loop. Bump the 3 to 4 if/when protocol 3 is invented.
! protocols = range(3)
 
 
--- 9,15 ----
 # Tests that try a number of pickle protocols should have a
 # for proto in protocols:
! # kind of outer loop.
! assert pickle.HIGHEST_PROTOCOL == cPickle.HIGHEST_PROTOCOL == 2
! protocols = range(pickle.HIGHEST_PROTOCOL + 1)
 
 

AltStyle によって変換されたページ (->オリジナル) /