File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
@@ -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
22462243if __name__ == '__main__' :
2247- test_main ()
2244+ unittest . main ()
You can’t perform that action at this time.
0 commit comments