diff options
author | Collin Winter <collinw@gmail.com> | 2007-04-25 17:29:52 +0000 |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-04-25 17:29:52 +0000 |
commit | dab26405e88f847ad2db6ceba78e7357ef13f81b (patch) | |
tree | 4429cea835d09e47de8f4493d2f31f725f2b1f96 /Lib/test/test_codecencodings_cn.py | |
parent | c3bc5369e7333b6cdcb39aed67be23593e9254f4 (diff) | |
download | cpython-dab26405e88f847ad2db6ceba78e7357ef13f81b.tar.gz |
Standardize on test.test_support.run_unittest() (as opposed to a mix of run_unittest() and run_suite()). Also, add functionality to run_unittest() that admits usage of unittest.TestLoader.loadTestsFromModule().
Diffstat (limited to 'Lib/test/test_codecencodings_cn.py')
-rw-r--r-- | Lib/test/test_codecencodings_cn.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_codecencodings_cn.py b/Lib/test/test_codecencodings_cn.py index c558f1bb99..96b0d77096 100644 --- a/Lib/test/test_codecencodings_cn.py +++ b/Lib/test/test_codecencodings_cn.py @@ -51,11 +51,7 @@ class Test_GB18030(test_multibytecodec_support.TestBase, unittest.TestCase): has_iso10646 = True def test_main(): - suite = unittest.TestSuite() - suite.addTest(unittest.makeSuite(Test_GB2312)) - suite.addTest(unittest.makeSuite(Test_GBK)) - suite.addTest(unittest.makeSuite(Test_GB18030)) - test_support.run_suite(suite) + test_support.run_unittest(__name__) if __name__ == "__main__": test_main() |