[Python-checkins] python/dist/src/Lib/test test_os.py,1.12,1.13

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2002年8月22日 12:40:36 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv8188
Modified Files:
	test_os.py 
Log Message:
Standardize behavior: create a single suite merging all test cases.
Index: test_os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_os.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_os.py	23 Jul 2002 19:03:58 -0000	1.12
--- test_os.py	22 Aug 2002 19:40:33 -0000	1.13
***************
*** 10,14 ****
 warnings.filterwarnings("ignore", "tmpnam", RuntimeWarning, __name__)
 
! from test.test_support import TESTFN, run_unittest
 
 class TemporaryFileTests(unittest.TestCase):
--- 10,14 ----
 warnings.filterwarnings("ignore", "tmpnam", RuntimeWarning, __name__)
 
! from test.test_support import TESTFN, run_suite
 
 class TemporaryFileTests(unittest.TestCase):
***************
*** 187,192 ****
 
 def test_main():
! run_unittest(TemporaryFileTests)
! run_unittest(StatAttributeTests)
 
 if __name__ == "__main__":
--- 187,194 ----
 
 def test_main():
! suite = unittest.TestSuite()
! suite.addTest(unittest.makeSuite(TemporaryFileTests))
! suite.addTest(unittest.makeSuite(StatAttributeTests))
! run_suite(suite)
 
 if __name__ == "__main__":

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