File tree 1 file changed +6
-9
lines changed 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Python test set -- math module
2
2
# XXXX Should not do tests around zero only
3
3
4
- from test .support import run_unittest , verbose , requires_IEEE_754
4
+ from test .support import verbose , requires_IEEE_754
5
5
from test import support
6
6
import unittest
7
7
import itertools
@@ -2230,13 +2230,10 @@ def test_fractions(self):
2230
2230
self .assertAllNotClose (fraction_examples , rel_tol = 1e-9 )
2231
2231
2232
2232
2233
- def test_main ():
2234
- # 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 )
2233
+ def load_tests (loader , tests , pattern ):
2234
+ from doctest import DocFileSuite
2235
+ tests .addTest (DocFileSuite ("ieee754.txt" ))
2236
+ return tests
2240
2237
2241
2238
if __name__ == '__main__' :
2242
- test_main ()
2239
+ unittest . main ()
You can’t perform that action at this time.
0 commit comments