Skip to content

Commit 9aaba78

Browse files
committed
Correctly move email package tests to Lib/test.
1 parent 76a3d73 commit 9aaba78

56 files changed

Lines changed: 22 additions & 47 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Lib/email/test/__init__.py

Whitespace-only changes.

Lib/test/test_email.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

Lib/test/test_email/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import os
2+
import sys
3+
import unittest
4+
import test.support
5+
6+
# used by regrtest and __main__.
7+
def test_main():
8+
here = os.path.dirname(__file__)
9+
# Unittest mucks with the path, so we have to save and restore
10+
# it to keep regrtest happy.
11+
savepath = sys.path[:]
12+
test.support._run_suite(unittest.defaultTestLoader.discover(here))
13+
sys.path[:] = savepath

0 commit comments

Comments
 (0)