Skip to content

Commit 3ba023b

Browse files
committed
Add todos in front of unittest.skip("RustPython") notes
1 parent e14adc4 commit 3ba023b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Lib/test/test_math.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def testConstants(self):
249249
self.ftest('e', math.e, 2.718281828459045235360287)
250250
self.assertEqual(math.tau, 2*math.pi)
251251

252-
@unittest.skip('RustPython')
252+
@unittest.skip('TODO: RustPython')
253253
def testAcos(self):
254254
self.assertRaises(TypeError, math.acos)
255255
self.ftest('acos(-1)', math.acos(-1), math.pi)
@@ -261,7 +261,7 @@ def testAcos(self):
261261
self.assertRaises(ValueError, math.acos, -1 - eps)
262262
self.assertTrue(math.isnan(math.acos(NAN)))
263263

264-
@unittest.skip('RustPython')
264+
@unittest.skip('TODO: RustPython')
265265
def testAcosh(self):
266266
self.assertRaises(TypeError, math.acosh)
267267
self.ftest('acosh(1)', math.acosh(1), 0)
@@ -272,7 +272,7 @@ def testAcosh(self):
272272
self.assertRaises(ValueError, math.acosh, NINF)
273273
self.assertTrue(math.isnan(math.acosh(NAN)))
274274

275-
@unittest.skip('RustPython')
275+
@unittest.skip('TODO: RustPython')
276276
def testAsin(self):
277277
self.assertRaises(TypeError, math.asin)
278278
self.ftest('asin(-1)', math.asin(-1), -math.pi/2)
@@ -302,7 +302,7 @@ def testAtan(self):
302302
self.ftest('atan(-inf)', math.atan(NINF), -math.pi/2)
303303
self.assertTrue(math.isnan(math.atan(NAN)))
304304

305-
@unittest.skip('RustPython')
305+
@unittest.skip('TODO: RustPython')
306306
def testAtanh(self):
307307
self.assertRaises(TypeError, math.atan)
308308
self.ftest('atanh(0)', math.atanh(0), 0)
@@ -375,7 +375,7 @@ def testAtan2(self):
375375
self.assertTrue(math.isnan(math.atan2(NAN, INF)))
376376
self.assertTrue(math.isnan(math.atan2(NAN, NAN)))
377377

378-
@unittest.skip('RustPython')
378+
@unittest.skip('TODO: RustPython')
379379
def testCeil(self):
380380
self.assertRaises(TypeError, math.ceil)
381381
self.assertEqual(int, type(math.ceil(0.5)))
@@ -444,7 +444,7 @@ def testCopysign(self):
444444
# similarly, copysign(2., NAN) could be 2. or -2.
445445
self.assertEqual(abs(math.copysign(2., NAN)), 2.)
446446

447-
@unittest.skip('RustPython')
447+
@unittest.skip('TODO: RustPython')
448448
def testCos(self):
449449
self.assertRaises(TypeError, math.cos)
450450
self.ftest('cos(-pi/2)', math.cos(-math.pi/2), 0, abs_tol=math.ulp(1))
@@ -503,7 +503,7 @@ def testFactorial(self):
503503
self.assertRaises(ValueError, math.factorial, -1)
504504
self.assertRaises(ValueError, math.factorial, -10**100)
505505

506-
@unittest.skip('RustPython')
506+
@unittest.skip('TODO: RustPython')
507507
def testFactorialNonIntegers(self):
508508
with self.assertWarns(DeprecationWarning):
509509
self.assertEqual(math.factorial(5.0), 120)
@@ -815,7 +815,7 @@ def testHypot(self):
815815
scale = FLOAT_MIN / 2.0 ** exp
816816
self.assertEqual(math.hypot(4*scale, 3*scale), 5*scale)
817817

818-
@unittest.skip('RustPython')
818+
@unittest.skip('TODO: RustPython')
819819
def testDist(self):
820820
from decimal import Decimal as D
821821
from fractions import Fraction as F

0 commit comments

Comments
 (0)