summaryrefslogtreecommitdiff
path: root/Lib/test/test_email/__init__.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-21 17:17:06 -0400
committerR David Murray <rdmurray@bitdance.com>2011-03-21 17:17:06 -0400
commit9aaba789b38834f40bb833735836a52237323be2 (patch)
tree0341ba51f5e09149e8f3bfa01b2cb9641c75243a /Lib/test/test_email/__init__.py
parent76a3d73cbd4fffb051f9fbb1a52c4e4815851254 (diff)
downloadcpython-git-9aaba789b38834f40bb833735836a52237323be2.tar.gz
Correctly move email package tests to Lib/test.
Diffstat (limited to 'Lib/test/test_email/__init__.py')
-rw-r--r--Lib/test/test_email/__init__.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/test_email/__init__.py b/Lib/test/test_email/__init__.py
new file mode 100644
index 0000000000..5aae093b40
--- /dev/null
+++ b/Lib/test/test_email/__init__.py
@@ -0,0 +1,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