summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2013-12-08 07:00:14 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2013-12-08 07:00:14 (GMT)
commit4adb37c40f541fe6c36330da1e95935f1f39cc3d (patch)
tree0c4950bac4b807109cc041d7386f980ada8e61e4
parent7ef00ff91a0a90a2b11df40d110365e6a7909a94 (diff)
downloadcpython-4adb37c40f541fe6c36330da1e95935f1f39cc3d.zip
cpython-4adb37c40f541fe6c36330da1e95935f1f39cc3d.tar.gz
cpython-4adb37c40f541fe6c36330da1e95935f1f39cc3d.tar.bz2
Issue #19926: Removed unneeded test_main from test_abstract_numbers.
Patch by Vajrasky Kok.
-rw-r--r--Lib/test/test_abstract_numbers.py4
-rw-r--r--Misc/NEWS3
2 files changed, 3 insertions, 4 deletions
diff --git a/Lib/test/test_abstract_numbers.py b/Lib/test/test_abstract_numbers.py
index 253e6f0..2e06f0d 100644
--- a/Lib/test/test_abstract_numbers.py
+++ b/Lib/test/test_abstract_numbers.py
@@ -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()
diff --git a/Misc/NEWS b/Misc/NEWS
index da1e365..5a760ba 100644
--- 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