# 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()
self.assertEqual(len(it), 0)
-
-if __name__ == "__main__":
-
+def test_main():
unittests = [
TestRepeat,
TestXrange,
TestSeqIterReversed,
]
test_support.run_unittest(*unittests)
+
+if __name__ == "__main__":
+ test_main()
- 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?
===========================