[Python-checkins] CVS: python/dist/src/Lib/test test_binhex.py,1.11,1.12 test_binop.py,1.5,1.6 test_call.py,1.1,1.2 test_codecs.py,1.1,1.2 test_codeop.py,1.2,1.3 test_commands.py,1.1,1.2 test_copy_reg.py,1.2,1.3 test_dircache.py,1.3,1.4 test_dospath.py,1.4,1.5 test_fnmatch.py,1.2,1.3 test_fpformat.py,1.3,1.4 test_glob.py,1.2,1.3 test_grp.py,1.8,1.9 test_hash.py,1.4,1.5 test_iter.py,1.19,1.20 test_mailbox.py,1.6,1.7 test_mhlib.py,1.4,1.5 test_mimetypes.py,1.1,1.2 test_operator.py,1.7,1.8 test_os.py,1.5,1.6 test_parser.py,1.9,1.10 test_pkgimport.py,1.3,1.4 test_pprint.py,1.5,1.6 test_pyclbr.py,1.3,1.4 test_quopri.py,1.4,1.5 test_repr.py,1.6,1.7 test_rfc822.py,1.12,1.13 test_sha.py,1.2,1.3 test_strop.py,1.14,1.15 test_time.py,1.7,1.8 test_traceback.py,1.3,1.4 test_unary.py,1.3,1.4 test_weakref.py,1.11,1.12 test_xmllib.py,1.5,1.6

Fred L. Drake fdrake@users.sourceforge.net
Thu, 20 Sep 2001 14:33:45 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv3080

Modified Files:
	test_binhex.py test_binop.py test_call.py test_codecs.py 
	test_codeop.py test_commands.py test_copy_reg.py 
	test_dircache.py test_dospath.py test_fnmatch.py 
	test_fpformat.py test_glob.py test_grp.py test_hash.py 
	test_iter.py test_mailbox.py test_mhlib.py test_mimetypes.py 
	test_operator.py test_os.py test_parser.py test_pkgimport.py 
	test_pprint.py test_pyclbr.py test_quopri.py test_repr.py 
	test_rfc822.py test_sha.py test_strop.py test_time.py 
	test_traceback.py test_unary.py test_weakref.py test_xmllib.py 
Log Message:
Change the PyUnit-based tests to use the test_main() approach.  This
allows using the tests with unittest.py as a script.  The tests will
still run when run as a script themselves.


Index: test_binhex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_binhex.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** test_binhex.py	2001/05/22 21:01:14	1.11
--- test_binhex.py	2001/09/20 21:33:42	1.12
***************
*** 43,45 ****
  
  
! test_support.run_unittest(BinHexTestCase)
--- 43,50 ----
  
  
! def test_main():
!     test_support.run_unittest(BinHexTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_binop.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_binop.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_binop.py	2001/09/06 21:56:42	1.5
--- test_binop.py	2001/09/20 21:33:42	1.6
***************
*** 321,323 ****
  """
  
! test_support.run_unittest(RatTestCase)
--- 321,328 ----
  """
  
! def test_main():
!     test_support.run_unittest(RatTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_call.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_call.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_call.py	2001/05/29 16:26:16	1.1
--- test_call.py	2001/09/20 21:33:42	1.2
***************
*** 123,125 ****
          self.assertRaises(TypeError, {}.update, x=2, y=2)
  
! run_unittest(CFunctionCalls)
--- 123,131 ----
          self.assertRaises(TypeError, {}.update, x=2, y=2)
  
! 
! def test_main():
!     run_unittest(CFunctionCalls)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_codecs.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_codecs.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_codecs.py	2001/06/19 20:09:28	1.1
--- test_codecs.py	2001/09/20 21:33:42	1.2
***************
*** 23,25 ****
          self.assertEquals(f.read(), u"spamspam")
  
! test_support.run_unittest(UTF16Test)
--- 23,31 ----
          self.assertEquals(f.read(), u"spamspam")
  
! 
! def test_main():
!     test_support.run_unittest(UTF16Test)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_codeop.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_codeop.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_codeop.py	2001/08/09 21:40:30	1.2
--- test_codeop.py	2001/09/20 21:33:42	1.3
***************
*** 88,90 ****
                               compile("a = 1\n", "def", 'single').co_filename)
  
! run_unittest(CodeopTests)
--- 88,96 ----
                               compile("a = 1\n", "def", 'single').co_filename)
  
! 
! def test_main():
!     run_unittest(CodeopTests)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_commands.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_commands.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_commands.py	2001/07/23 04:08:01	1.1
--- test_commands.py	2001/09/20 21:33:42	1.2
***************
*** 43,45 ****
          self.assert_(re.match(pat, getstatus("/bin/ls"), re.VERBOSE))
  
! run_unittest(CommandTests)
--- 43,51 ----
          self.assert_(re.match(pat, getstatus("/bin/ls"), re.VERBOSE))
  
! 
! def test_main():
!     run_unittest(CommandTests)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_copy_reg.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_copy_reg.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_copy_reg.py	2001/05/22 20:38:44	1.2
--- test_copy_reg.py	2001/09/20 21:33:42	1.3
***************
*** 23,25 ****
  
  
! test_support.run_unittest(CopyRegTestCase)
--- 23,30 ----
  
  
! def test_main():
!     test_support.run_unittest(CopyRegTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_dircache.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_dircache.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_dircache.py	2001/07/21 02:22:14	1.3
--- test_dircache.py	2001/09/20 21:33:42	1.4
***************
*** 66,68 ****
          self.assertEquals(lst, ['A/', 'test2', 'test_nonexistent'])
  
! run_unittest(DircacheTests)
--- 66,74 ----
          self.assertEquals(lst, ['A/', 'test2', 'test_nonexistent'])
  
! 
! def test_main():
!     run_unittest(DircacheTests)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_dospath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_dospath.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_dospath.py	2001/05/22 20:20:49	1.4
--- test_dospath.py	2001/09/20 21:33:42	1.5
***************
*** 54,56 ****
  
  
! test_support.run_unittest(DOSPathTestCase)
--- 54,61 ----
  
  
! def test_main():
!     test_support.run_unittest(DOSPathTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_fnmatch.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_fnmatch.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_fnmatch.py	2001/05/22 20:25:05	1.2
--- test_fnmatch.py	2001/09/20 21:33:42	1.3
***************
*** 39,41 ****
  
  
! test_support.run_unittest(FnmatchTestCase)
--- 39,46 ----
  
  
! def test_main():
!     test_support.run_unittest(FnmatchTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_fpformat.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_fpformat.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_fpformat.py	2001/07/23 16:30:21	1.3
--- test_fpformat.py	2001/09/20 21:33:42	1.4
***************
*** 67,69 ****
              self.fail("No exception on non-numeric sci")
  
! run_unittest(FpformatTest)
--- 67,75 ----
              self.fail("No exception on non-numeric sci")
  
! 
! def test_main():
!     run_unittest(FpformatTest)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_glob.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_glob.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_glob.py	2001/08/09 21:40:30	1.2
--- test_glob.py	2001/09/20 21:33:42	1.3
***************
*** 107,109 ****
                                                     os.path.join('aab', 'F')]))
  
! run_unittest(GlobTests)
--- 107,115 ----
                                                     os.path.join('aab', 'F')]))
  
! 
! def test_main():
!     run_unittest(GlobTests)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_grp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_grp.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** test_grp.py	2001/05/18 21:38:52	1.8
--- test_grp.py	2001/09/20 21:33:42	1.9
***************
*** 20,22 ****
  
  
! test_support.run_unittest(GroupDatabaseTestCase)
--- 20,27 ----
  
  
! def test_main():
!     test_support.run_unittest(GroupDatabaseTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_hash.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_hash.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_hash.py	2001/05/18 21:50:02	1.4
--- test_hash.py	2001/09/20 21:33:42	1.5
***************
*** 29,31 ****
  
  
! test_support.run_unittest(HashEqualityTestCase)
--- 29,36 ----
  
  
! def test_main():
!     test_support.run_unittest(HashEqualityTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_iter.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_iter.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** test_iter.py	2001/09/08 04:00:12	1.19
--- test_iter.py	2001/09/20 21:33:42	1.20
***************
*** 695,697 ****
          self.assertEqual((a, b, c), (0, 1, 42))
  
! run_unittest(TestCase)
--- 695,703 ----
          self.assertEqual((a, b, c), (0, 1, 42))
  
! 
! def test_main():
!     run_unittest(TestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_mailbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mailbox.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_mailbox.py	2001/06/19 20:20:05	1.6
--- test_mailbox.py	2001/09/20 21:33:42	1.7
***************
*** 97,99 ****
  
  
! test_support.run_unittest(MaildirTestCase)
--- 97,104 ----
  
  
! def test_main():
!     test_support.run_unittest(MaildirTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_mhlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mhlib.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_mhlib.py	2001/08/11 23:22:43	1.4
--- test_mhlib.py	2001/09/20 21:33:42	1.5
***************
*** 332,334 ****
          del msg
  
! run_unittest(MhlibTests)
--- 332,340 ----
          del msg
  
! 
! def test_main():
!     run_unittest(MhlibTests)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_mimetypes.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_mimetypes.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_mimetypes.py	2001/08/16 18:36:59	1.1
--- test_mimetypes.py	2001/09/20 21:33:42	1.2
***************
*** 40,42 ****
  
  
! test_support.run_unittest(MimeTypesTestCase)
--- 40,47 ----
  
  
! def test_main():
!     test_support.run_unittest(MimeTypesTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_operator.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_operator.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_operator.py	2001/09/04 19:14:14	1.7
--- test_operator.py	2001/09/20 21:33:42	1.8
***************
*** 211,213 ****
  
  
! test_support.run_unittest(OperatorTestCase)
--- 211,218 ----
  
  
! def test_main():
!     test_support.run_unittest(OperatorTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_os.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_os.py	2001/08/22 19:24:42	1.5
--- test_os.py	2001/09/20 21:33:42	1.6
***************
*** 63,66 ****
  
  
  
! run_unittest(TemporaryFileTests)
--- 63,70 ----
  
  
+ def test_main():
+     run_unittest(TemporaryFileTests)
  
! 
! if __name__ == "__main__":
!     test_main()

Index: test_parser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_parser.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_parser.py	2001/07/17 19:33:25	1.9
--- test_parser.py	2001/09/20 21:33:42	1.10
***************
*** 354,357 ****
  
  
! test_support.run_unittest(RoundtripLegalSyntaxTestCase)
! test_support.run_unittest(IllegalSyntaxTestCase)
--- 354,365 ----
  
  
! def test_main():
!     loader = unittest.TestLoader()
!     suite = unittest.TestSuite()
!     suite.addTest(loader.loadTestsFromTestCase(RoundtripLegalSyntaxTestCase))
!     suite.addTest(loader.loadTestsFromTestCase(IllegalSyntaxTestCase))
!     test_support.run_suite(suite)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_pkgimport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pkgimport.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_pkgimport.py	2001/08/09 21:40:30	1.3
--- test_pkgimport.py	2001/09/20 21:33:42	1.4
***************
*** 76,78 ****
          self.assertEqual(getattr(module, var), 1)
  
! run_unittest(TestImport)
--- 76,84 ----
          self.assertEqual(getattr(module, var), 1)
  
! 
! def test_main():
!     run_unittest(TestImport)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_pprint.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pprint.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_pprint.py	2001/08/17 18:39:24	1.5
--- test_pprint.py	2001/09/20 21:33:42	1.6
***************
*** 77,79 ****
                                        (native, got, function))
  
! test_support.run_unittest(QueryTestCase)
--- 77,85 ----
                                        (native, got, function))
  
! 
! def test_main():
!     test_support.run_unittest(QueryTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_pyclbr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pyclbr.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_pyclbr.py	2001/09/04 01:20:04	1.3
--- test_pyclbr.py	2001/09/20 21:33:42	1.4
***************
*** 154,156 ****
          # cm('pdb', pdb)
  
! run_unittest(PyclbrTest)
--- 154,162 ----
          # cm('pdb', pdb)
  
! 
! def test_main():
!     run_unittest(PyclbrTest)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_quopri.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_quopri.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_quopri.py	2001/08/03 20:40:18	1.4
--- test_quopri.py	2001/09/20 21:33:42	1.5
***************
*** 137,139 ****
  
  
! test_support.run_unittest(QuopriTestCase)
--- 137,144 ----
  
  
! def test_main():
!     test_support.run_unittest(QuopriTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_repr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_repr.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_repr.py	2001/09/14 23:01:49	1.6
--- test_repr.py	2001/09/20 21:33:42	1.7
***************
*** 266,270 ****
  
  
! run_unittest(ReprTests)
! if os.name != 'mac':
!     run_unittest(LongReprTest)
--- 266,275 ----
  
  
! def test_main():
!     run_unittest(ReprTests)
!     if os.name != 'mac':
!         run_unittest(LongReprTest)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_rfc822.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_rfc822.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_rfc822.py	2001/07/16 20:44:16	1.12
--- test_rfc822.py	2001/09/20 21:33:42	1.13
***************
*** 178,180 ****
                     [('User J. Person', 'person@dom.ain')])
  
! test_support.run_unittest(MessageTestCase)
--- 178,186 ----
                     [('User J. Person', 'person@dom.ain')])
  
! 
! def test_main():
!     test_support.run_unittest(MessageTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_sha.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sha.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_sha.py	2001/05/22 21:43:17	1.2
--- test_sha.py	2001/09/20 21:33:42	1.3
***************
*** 28,30 ****
  
  
! test_support.run_unittest(SHATestCase)
--- 28,35 ----
  
  
! def test_main():
!     test_support.run_unittest(SHATestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_strop.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_strop.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** test_strop.py	2001/05/22 16:44:33	1.14
--- test_strop.py	2001/09/20 21:33:42	1.15
***************
*** 126,128 ****
  
  
! test_support.run_unittest(StropFunctionTestCase)
--- 126,133 ----
  
  
! def test_main():
!     test_support.run_unittest(StropFunctionTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_time.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_time.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_time.py	2001/05/22 17:02:02	1.7
--- test_time.py	2001/09/20 21:33:42	1.8
***************
*** 49,51 ****
  
  
! test_support.run_unittest(TimeTestCase)
--- 49,56 ----
  
  
! def test_main():
!     test_support.run_unittest(TimeTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_traceback.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_traceback.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_traceback.py	2001/04/18 01:19:27	1.3
--- test_traceback.py	2001/09/20 21:33:42	1.4
***************
*** 38,40 ****
          self.assert_(err[1].strip() == "[x for x in x] = x")
  
! run_unittest(TracebackCases)
--- 38,46 ----
          self.assert_(err[1].strip() == "[x for x in x] = x")
  
! 
! def test_main():
!     run_unittest(TracebackCases)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_unary.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_unary.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_unary.py	2001/08/30 19:15:20	1.3
--- test_unary.py	2001/09/20 21:33:42	1.4
***************
*** 50,52 ****
          self.assertRaises(TypeError, eval, "~2.0")
  
! run_unittest(UnaryOpTestCase)
--- 50,58 ----
          self.assertRaises(TypeError, eval, "~2.0")
  
! 
! def test_main():
!     run_unittest(UnaryOpTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_weakref.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_weakref.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** test_weakref.py	2001/09/06 14:52:39	1.11
--- test_weakref.py	2001/09/20 21:33:42	1.12
***************
*** 3,7 ****
  import weakref
  
! from test_support import run_unittest
  
  
--- 3,7 ----
  import weakref
  
! import test_support
  
  
***************
*** 435,438 ****
  
  
! run_unittest(ReferencesTestCase)
! run_unittest(MappingTestCase)
--- 435,446 ----
  
  
! def test_main():
!     loader = unittest.TestLoader()
!     suite = unittest.TestSuite()
!     suite.addTest(loader.loadTestsFromTestCase(ReferencesTestCase))
!     suite.addTest(loader.loadTestsFromTestCase(MappingTestCase))
!     test_support.run_suite(suite)
! 
! 
! if __name__ == "__main__":
!     test_main()

Index: test_xmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_xmllib.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_xmllib.py	2001/05/22 20:22:06	1.5
--- test_xmllib.py	2001/09/20 21:33:42	1.6
***************
*** 28,30 ****
  
  
! test_support.run_unittest(XMLParserTestCase)
--- 28,35 ----
  
  
! def test_main():
!     test_support.run_unittest(XMLParserTestCase)
! 
! 
! if __name__ == "__main__":
!     test_main()