[Python-checkins] python/dist/src/Lib/test test_weakref.py,1.20,1.21

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2002年8月22日 13:21:32 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv4914
Modified Files:
	test_weakref.py 
Log Message:
Standardize behavior: no docstrings in test functions. Also use
unittest.makeSuite() rather than loader.loadTestsFromTestCase().
Index: test_weakref.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_weakref.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** test_weakref.py	23 Jul 2002 19:04:09 -0000	1.20
--- test_weakref.py	22 Aug 2002 20:21:30 -0000	1.21
***************
*** 75,80 ****
 
 def test_multiple_selfref_callbacks(self):
! """Make sure all references are invalidated before callbacks
! are called."""
 #
 # What's important here is that we're using the first
--- 75,79 ----
 
 def test_multiple_selfref_callbacks(self):
! # Make sure all references are invalidated before callbacks are called
 #
 # What's important here is that we're using the first
***************
*** 263,267 ****
 
 def test_callbacks_protected(self):
! """Callbacks protected from already-set exceptions?"""
 # Regression test for SF bug #478534.
 class BogusError(Exception):
--- 262,266 ----
 
 def test_callbacks_protected(self):
! # Callbacks protected from already-set exceptions?
 # Regression test for SF bug #478534.
 class BogusError(Exception):
***************
*** 521,528 ****
 
 def test_main():
- loader = unittest.TestLoader()
 suite = unittest.TestSuite()
! suite.addTest(loader.loadTestsFromTestCase(ReferencesTestCase))
! suite.addTest(loader.loadTestsFromTestCase(MappingTestCase))
 test_support.run_suite(suite)
 
--- 520,526 ----
 
 def test_main():
 suite = unittest.TestSuite()
! suite.addTest(unittest.makeSuite(ReferencesTestCase))
! suite.addTest(unittest.makeSuite(MappingTestCase))
 test_support.run_suite(suite)
 

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