summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_email/__init__.py
blob: 5aae093b4060dd2616d7359b2b044107e1139f27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
import sys
import unittest
import test.support

# used by regrtest and __main__.
def test_main():
    here = os.path.dirname(__file__)
    # Unittest mucks with the path, so we have to save and restore
    # it to keep regrtest happy.
    savepath = sys.path[:]
    test.support._run_suite(unittest.defaultTestLoader.discover(here))
    sys.path[:] = savepath