Issue #19926: Removed unneeded test_main from test_abstract_numbers.
authorZachary Ware <zachary.ware@gmail.com>
Sun, 8 Dec 2013 07:00:14 +0000 (01:00 -0600)
committerZachary Ware <zachary.ware@gmail.com>
Sun, 8 Dec 2013 07:00:14 +0000 (01:00 -0600)
Patch by Vajrasky Kok.

Lib/test/test_abstract_numbers.py
Misc/NEWS

index 253e6f082c300d6087e101dc1a2e31e45481aa2e..2e06f0d16fdd05bc9e68821b9e0f18afacaa9677 100644 (file)
@@ -4,7 +4,6 @@ import math
 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 @@ class TestNumbers(unittest.TestCase):
         self.assertRaises(TypeError, float, c1)
         self.assertRaises(TypeError, int, c1)
 
-def test_main():
-    support.run_unittest(TestNumbers)
-
 
 if __name__ == "__main__":
     unittest.main()
index da1e3655d4f0674f8cdb0401fbcf3a7b480c9a2f..5a760ba625c40f6120aac31035a0595941160bf8 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -97,6 +97,9 @@ Library
 Tests
 -----
 
+- Issue #19926: Removed unneeded test_main from test_abstract_numbers.
+  Patch by Vajrasky Kok.
+
 - Issue #19595: Re-enabled a long-disabled test in test_winsound.
 
 - Issue #19588: Fixed tests in test_random that were silently skipped most