From 3e9a9ae09d6fc9169b01cba3efd1ae03ab40b237 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 12 Jun 2013 21:25:59 -0400 Subject: Update various test modules to use unittest.main() for test discovery instead of manually listing tests for test.support.run_unittest(). --- Lib/test/test_codeccallbacks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Lib/test/test_codeccallbacks.py') diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py index fd88505081..84804bb0da 100644 --- a/Lib/test/test_codeccallbacks.py +++ b/Lib/test/test_codeccallbacks.py @@ -875,8 +875,6 @@ class CodecCallbackTest(unittest.TestCase): with self.assertRaises(TypeError): data.decode(encoding, "test.replacing") -def test_main(): - test.support.run_unittest(CodecCallbackTest) if __name__ == "__main__": - test_main() + unittest.main() -- cgit v1.2.1