From: Guido van Rossum Date: Sun, 6 Oct 2002 14:38:00 +0000 (+0000) Subject: Backport: X-Git-Tag: v2.2.2b1~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19cb870084516113c1c31d953694afa509955d1d;p=thirdparty%2FPython%2Fcpython.git Backport: Make sure the email test suite can be run both stand-alone and under supervision of regrtest.py. --- diff --git a/Lib/test/test_email.py b/Lib/test/test_email.py index 5df59606086a..de0eee36b357 100644 --- a/Lib/test/test_email.py +++ b/Lib/test/test_email.py @@ -4,8 +4,10 @@ import unittest # The specific tests now live in Lib/email/test from email.test.test_email import suite +from test.test_support import run_suite +def test_main(): + run_suite(suite()) - if __name__ == '__main__': - unittest.main(defaultTest='suite') + test_main()