Skip to content

Commit d1627ec

Browse files
committed
Update test_math.py from CPython v3.12.0a0
1 parent 3bb3923 commit d1627ec

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

Lib/test/test_math.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Python test set -- math module
22
# XXXX Should not do tests around zero only
33

4-
from test.support import run_unittest, verbose, requires_IEEE_754
4+
from test.support import verbose, requires_IEEE_754
55
from test import support
66
import unittest
77
import itertools
@@ -2235,13 +2235,10 @@ def test_fractions(self):
22352235
self.assertAllNotClose(fraction_examples, rel_tol=1e-9)
22362236

22372237

2238-
def test_main():
2239-
# from doctest import DocFileSuite
2240-
suite = unittest.TestSuite()
2241-
suite.addTest(unittest.makeSuite(MathTests))
2242-
suite.addTest(unittest.makeSuite(IsCloseTests))
2243-
# suite.addTest(DocFileSuite("ieee754.txt"))
2244-
run_unittest(suite)
2238+
def load_tests(loader, tests, pattern):
2239+
from doctest import DocFileSuite
2240+
# tests.addTest(DocFileSuite("ieee754.txt"))
2241+
return tests
22452242

22462243
if __name__ == '__main__':
2247-
test_main()
2244+
unittest.main()

0 commit comments

Comments
 (0)