File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 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
55from test import support
66import unittest
77import itertools
@@ -2230,13 +2230,10 @@ def test_fractions(self):
22302230 self .assertAllNotClose (fraction_examples , rel_tol = 1e-9 )
22312231
22322232
2233- def test_main ( ):
2233+ def load_tests ( loader , tests , pattern ):
22342234 # from doctest import DocFileSuite
2235- suite = unittest .TestSuite ()
2236- suite .addTest (unittest .makeSuite (MathTests ))
2237- suite .addTest (unittest .makeSuite (IsCloseTests ))
2238- # suite.addTest(DocFileSuite("ieee754.txt"))
2239- run_unittest (suite )
2235+ # tests.addTest(DocFileSuite("ieee754.txt"))
2236+ return tests
22402237
22412238if __name__ == '__main__' :
2242- test_main ()
2239+ unittest . main ()
You can’t perform that action at this time.
0 commit comments