]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1529686: run test_iterlen and test_email_codecs in 2.4.
authorGeorg Brandl <georg@python.org>
Fri, 28 Jul 2006 18:30:50 +0000 (18:30 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 28 Jul 2006 18:30:50 +0000 (18:30 +0000)
Lib/test/test_email_codecs.py
Lib/test/test_iterlen.py
Misc/NEWS

index aadd53738c34217eb3bc7c446a25f85d51e60ce4..b6a34569d8512abd6b096c3285e5bafeaa48308d 100644 (file)
@@ -1,11 +1,12 @@
 # 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 test import test_support
 
+def test_main():
+    test_support.run_suite(test_email_codecs.suite())
 
-\f
 if __name__ == '__main__':
-    unittest.main(defaultTest='suite')
+    test_main()
index b51263d118accb957b5a86f2c22e2e723b49e5fc..8c0c0e56d8213edf43d2039f37a26405fee942dc 100644 (file)
@@ -223,9 +223,7 @@ class TestSeqIterReversed(TestInvariantWithoutMutations):
         self.assertEqual(len(it), 0)
 
 
-
-if __name__ == "__main__":
-
+def test_main():
     unittests = [
         TestRepeat,
         TestXrange,
@@ -243,3 +241,6 @@ if __name__ == "__main__":
         TestSeqIterReversed,
     ]
     test_support.run_unittest(*unittests)
+
+if __name__ == "__main__":
+    test_main()
index 9531c610d063d6aa94b9cf30e4a0d9111b8166e2..e6b206963e23e3b08722c13655ba57dea7c855d8 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -153,6 +153,12 @@ Documentation
 - Bug #1337990: clarified that ``doctest`` does not support examples
   requiring both expected output and an exception.
 
+Tests
+-----
+
+- Patch #1529686: test_iterlen and test_email_codecs are now actually
+  run by regrtest.py.
+
 
 What's New in Python 2.4.3?
 ===========================