[Python-checkins] python/dist/src/Lib/test test_weakref.py,1.27,1.28

fdrake@users.sourceforge.net fdrake@users.sourceforge.net
2003年7月14日 14:37:19 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv7881
Modified Files:
	test_weakref.py 
Log Message:
stylistic nits:
- wrap some long lines
- shorten others
- fix indentation
Index: test_weakref.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_weakref.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** test_weakref.py	30 Jun 2003 04:18:48 -0000	1.27
--- test_weakref.py	14 Jul 2003 21:37:17 -0000	1.28
***************
*** 169,173 ****
 self.assertEqual(len(L), 2)
 self.assertEqual(len(p), 2)
! self.failUnless(3 in p, "proxy didn't support __contains__() properly")
 p[1] = 5
 self.assertEqual(L[1], 5)
--- 169,174 ----
 self.assertEqual(len(L), 2)
 self.assertEqual(len(p), 2)
! self.failUnless(3 in p,
! "proxy didn't support __contains__() properly")
 p[1] = 5
 self.assertEqual(L[1], 5)
***************
*** 399,403 ****
 for v in dict.itervalues():
 values.remove(v)
! self.assert_(len(values) == 0, "itervalues() did not touch all values")
 
 def test_make_weak_keyed_dict_from_dict(self):
--- 400,405 ----
 for v in dict.itervalues():
 values.remove(v)
! self.assert_(len(values) == 0,
! "itervalues() did not touch all values")
 
 def test_make_weak_keyed_dict_from_dict(self):
***************
*** 590,594 ****
 
 class WeakValueDictionaryTestCase(TestMappingProtocol):
! """Check that WeakValueDictionary class conforms to the mapping protocol"""
 __ref = {"key1":Object(1), "key2":Object(2), "key3":Object(3)}
 _tested_class = weakref.WeakValueDictionary
--- 592,596 ----
 
 class WeakValueDictionaryTestCase(TestMappingProtocol):
! """Check that WeakValueDictionary conforms to the mapping protocol"""
 __ref = {"key1":Object(1), "key2":Object(2), "key3":Object(3)}
 _tested_class = weakref.WeakValueDictionary
***************
*** 597,601 ****
 
 class WeakKeyDictionaryTestCase(TestMappingProtocol):
! """Check that WeakKeyDictionary class conforms to the mapping protocol"""
 __ref = {Object("key1"):1, Object("key2"):2, Object("key3"):3}
 _tested_class = weakref.WeakKeyDictionary
--- 599,603 ----
 
 class WeakKeyDictionaryTestCase(TestMappingProtocol):
! """Check that WeakKeyDictionary conforms to the mapping protocol"""
 __ref = {Object("key1"):1, Object("key2"):2, Object("key3"):3}
 _tested_class = weakref.WeakKeyDictionary
***************
*** 608,613 ****
 MappingTestCase,
 WeakValueDictionaryTestCase,
! WeakKeyDictionaryTestCase
! )
 
 
--- 610,615 ----
 MappingTestCase,
 WeakValueDictionaryTestCase,
! WeakKeyDictionaryTestCase,
! )
 
 

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