mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py. Will backport to 2.2.2.
This commit is contained in:
parent
82c19a74b2
commit
b03fac2ded
1 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue