[Python-checkins] cpython (merge 3.3 -> default): Issue #19926: Removed unneeded test_main from test_abstract_numbers.

zach.ware python-checkins at python.org
Sun Dec 8 08:02:39 CET 2013


http://hg.python.org/cpython/rev/7ff101a449b4
changeset:   87825:7ff101a449b4
parent:      87823:03afd2d7d395
parent:      87824:22c865babf0a
user:        Zachary Ware <zachary.ware at gmail.com>
date:        Sun Dec 08 01:01:42 2013 -0600
summary:
  Issue #19926: Removed unneeded test_main from test_abstract_numbers.
Patch by Vajrasky Kok.

files:
  Lib/test/test_abstract_numbers.py |  4 ----
  Misc/NEWS                         |  3 +++
  2 files changed, 3 insertions(+), 4 deletions(-)


diff --git a/Lib/test/test_abstract_numbers.py b/Lib/test/test_abstract_numbers.py
--- a/Lib/test/test_abstract_numbers.py
+++ b/Lib/test/test_abstract_numbers.py
@@ -4,7 +4,6 @@
 import operator
 import unittest
 from numbers import Complex, Real, Rational, Integral
-from test import support
 
 class TestNumbers(unittest.TestCase):
     def test_int(self):
@@ -40,9 +39,6 @@
         self.assertRaises(TypeError, float, c1)
         self.assertRaises(TypeError, int, c1)
 
-def test_main():
-    support.run_unittest(TestNumbers)
-
 
 if __name__ == "__main__":
     unittest.main()
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -106,6 +106,9 @@
 Tests
 -----
 
+- Issue #19926: Removed unneeded test_main from test_abstract_numbers.
+  Patch by Vajrasky Kok.
+
 - Issue #19572: More skipped tests explicitly marked as skipped.
 
 - Issue #19595: Re-enabled a long-disabled test in test_winsound.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list