Skip to content

Commit 4adb37c

Browse files
committed
Issue #19926: Removed unneeded test_main from test_abstract_numbers.
Patch by Vajrasky Kok.
1 parent 7ef00ff commit 4adb37c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/test/test_abstract_numbers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import operator
55
import unittest
66
from numbers import Complex, Real, Rational, Integral
7-
from test import support
87

98
class TestNumbers(unittest.TestCase):
109
def test_int(self):
@@ -40,9 +39,6 @@ def test_complex(self):
4039
self.assertRaises(TypeError, float, c1)
4140
self.assertRaises(TypeError, int, c1)
4241

43-
def test_main():
44-
support.run_unittest(TestNumbers)
45-
4642

4743
if __name__ == "__main__":
4844
unittest.main()

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ Library
9797
Tests
9898
-----
9999

100+
- Issue #19926: Removed unneeded test_main from test_abstract_numbers.
101+
Patch by Vajrasky Kok.
102+
100103
- Issue #19595: Re-enabled a long-disabled test in test_winsound.
101104

102105
- Issue #19588: Fixed tests in test_random that were silently skipped most

0 commit comments

Comments
 (0)