[Python-checkins] cpython (3.3): Use unittest.main() in test_htmlparser.

ezio.melotti python-checkins at python.org
Sat Nov 2 16:50:14 CET 2013


http://hg.python.org/cpython/rev/b77c1a19028e
changeset:   86844:b77c1a19028e
branch:      3.3
parent:      86839:a58fce53e873
user:        Ezio Melotti <ezio.melotti at gmail.com>
date:        Sat Nov 02 17:49:08 2013 +0200
summary:
  Use unittest.main() in test_htmlparser.

files:
  Lib/test/test_htmlparser.py |  8 +-------
  1 files changed, 1 insertions(+), 7 deletions(-)


diff --git a/Lib/test/test_htmlparser.py b/Lib/test/test_htmlparser.py
--- a/Lib/test/test_htmlparser.py
+++ b/Lib/test/test_htmlparser.py
@@ -753,11 +753,5 @@
                          ("data", "spam"), ("endtag", "a")])
 
 
-
-def test_main():
-    support.run_unittest(HTMLParserStrictTestCase, HTMLParserTolerantTestCase,
-                         AttributesStrictTestCase, AttributesTolerantTestCase)
-
-
 if __name__ == "__main__":
-    test_main()
+    unittest.main()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list