summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-10-06 14:37:11 (GMT)
committerGuido van Rossum <guido@python.org>2002-10-06 14:37:11 (GMT)
commitb03fac2ded952e87e425bc20ffd9aa0d06d7c9cd (patch)
tree7d04399a6f527c9ad8d8e3ace23a9ac31985b08a /Lib
parent82c19a74b275c540f912c8b449e6ef318f19e312 (diff)
downloadcpython-b03fac2ded952e87e425bc20ffd9aa0d06d7c9cd.zip
cpython-b03fac2ded952e87e425bc20ffd9aa0d06d7c9cd.tar.gz
cpython-b03fac2ded952e87e425bc20ffd9aa0d06d7c9cd.tar.bz2
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py. Will backport to 2.2.2.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_email.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_email.py b/Lib/test/test_email.py
index 5df5960..de0eee3 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()