[Python-checkins] python/dist/src/Lib/test pickletester.py,1.41,1.42

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2003年2月03日 14:32:20 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv20221/Lib/test
Modified Files:
	pickletester.py 
Log Message:
test_newobj_tuple(), test_newobj_list(): These tests should work under
all protocols, so tried them under all. 
Index: pickletester.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/pickletester.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** pickletester.py	3 Feb 2003 22:28:41 -0000	1.41
--- pickletester.py	3 Feb 2003 22:32:18 -0000	1.42
***************
*** 556,563 ****
 x.foo = 42
 x.bar = "hello"
! s = self.dumps(x, 2)
! y = self.loads(s)
! self.assertEqual(tuple(x), tuple(y))
! self.assertEqual(x.__dict__, y.__dict__)
 
 def test_newobj_list(self):
--- 556,564 ----
 x.foo = 42
 x.bar = "hello"
! for proto in protocols:
! s = self.dumps(x, proto)
! y = self.loads(s)
! self.assertEqual(tuple(x), tuple(y))
! self.assertEqual(x.__dict__, y.__dict__)
 
 def test_newobj_list(self):
***************
*** 565,572 ****
 x.foo = 42
 x.bar = "hello"
! s = self.dumps(x, 2)
! y = self.loads(s)
! self.assertEqual(list(x), list(y))
! self.assertEqual(x.__dict__, y.__dict__)
 
 def test_newobj_generic(self):
--- 566,574 ----
 x.foo = 42
 x.bar = "hello"
! for proto in protocols:
! s = self.dumps(x, proto)
! y = self.loads(s)
! self.assertEqual(list(x), list(y))
! self.assertEqual(x.__dict__, y.__dict__)
 
 def test_newobj_generic(self):

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