[Python-checkins] r50912 - in python/trunk: Lib/test/test_email_codecs.py Misc/NEWS

georg.brandl python-checkins at python.org
Fri Jul 28 20:31:39 CEST 2006


Author: georg.brandl
Date: Fri Jul 28 20:31:39 2006
New Revision: 50912

Modified:
   python/trunk/Lib/test/test_email_codecs.py
   python/trunk/Misc/NEWS
Log:
Patch #1529686: also run test_email_codecs with regrtest.py.



Modified: python/trunk/Lib/test/test_email_codecs.py
==============================================================================
--- python/trunk/Lib/test/test_email_codecs.py	(original)
+++ python/trunk/Lib/test/test_email_codecs.py	Fri Jul 28 20:31:39 2006
@@ -1,11 +1,15 @@
 # Copyright (C) 2002 Python Software Foundation
 # email package unit tests for (optional) Asian codecs
 
-import unittest
 # The specific tests now live in Lib/email/test
-from email.test.test_email_codecs import suite
+from email.test import test_email_codecs
+from email.test import test_email_codecs_renamed
+from test import test_support
 
+def test_main():
+    suite = test_email_codecs.suite()
+    suite.addTest(test_email_codecs_renamed.suite())
+    test_support.run_suite(suite)
 
-
 if __name__ == '__main__':
-    unittest.main(defaultTest='suite')
+    test_main()

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Fri Jul 28 20:31:39 2006
@@ -142,9 +142,9 @@
   how long the test file should take to play.  Now accepts taking 2.93 secs
   (exact time) +/- 10% instead of the hard-coded 3.1 sec.
 
-- Patch #1529686: The standard tests ``test_defaultdict``, ``test_iterlen``
-  and ``test_uuid`` didn't actually run any tests when run via ``regrtest.py``.
-  Now they do.
+- Patch #1529686: The standard tests ``test_defaultdict``, ``test_iterlen``,
+  ``test_uuid`` and ``test_email_codecs`` didn't actually run any tests when
+  run via ``regrtest.py``. Now they do.
 
 
 What's New in Python 2.5 beta 2?


More information about the Python-checkins mailing list