]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport:
authorGuido van Rossum <guido@python.org>
Sun, 6 Oct 2002 14:38:00 +0000 (14:38 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 6 Oct 2002 14:38:00 +0000 (14:38 +0000)
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py.

Lib/test/test_email.py

index 5df59606086a676d131f2743fcf02d64d647aa2b..de0eee36b3572b4bc856f5b39ba25551d7391a00 100644 (file)
@@ -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())
 
-\f
 if __name__ == '__main__':
-    unittest.main(defaultTest='suite')
+    test_main()