Skip to content

Commit 4793aa3

Browse files
committed
Patch #1529686: also run test_email_codecs with regrtest.py.
1 parent 39d7739 commit 4793aa3

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎Lib/test/test_email_codecs.py‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# Copyright (C) 2002 Python Software Foundation
22
# email package unit tests for (optional) Asian codecs
33

4-
import unittest
54
# The specific tests now live in Lib/email/test
6-
from email.test.test_email_codecs import suite
5+
from email.test import test_email_codecs
6+
from email.test import test_email_codecs_renamed
7+
from test import test_support
78

9+
def test_main():
10+
suite = test_email_codecs.suite()
11+
suite.addTest(test_email_codecs_renamed.suite())
12+
test_support.run_suite(suite)
813

9-
1014
if __name__ == '__main__':
11-
unittest.main(defaultTest='suite')
15+
test_main()

‎Misc/NEWS‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ Tests
142142
how long the test file should take to play. Now accepts taking 2.93 secs
143143
(exact time) +/- 10% instead of the hard-coded 3.1 sec.
144144

145-
- Patch #1529686: The standard tests ``test_defaultdict``, ``test_iterlen``
146-
and ``test_uuid`` didn't actually run any tests when run via ``regrtest.py``.
147-
Now they do.
145+
- Patch #1529686: The standard tests ``test_defaultdict``, ``test_iterlen``,
146+
``test_uuid`` and ``test_email_codecs`` didn't actually run any tests when
147+
run via ``regrtest.py``. Now they do.
148148

149149

150150
What's New in Python 2.5 beta 2?

0 commit comments

Comments
 (0)