mirror of
https://github.com/python/cpython.git
synced 2025-08-10 03:49:18 +00:00
these tests are the result of cpython's incorrect implementation
This commit is contained in:
parent
c9ba8914c9
commit
ba303c82d1
1 changed files with 0 additions and 5 deletions
|
@ -879,11 +879,6 @@ class MathTests(unittest.TestCase):
|
|||
self.assertRaises((AttributeError, TypeError), math.trunc,
|
||||
TestNoTrunc())
|
||||
|
||||
t = TestNoTrunc()
|
||||
t.__trunc__ = lambda *args: args
|
||||
self.assertEquals((), math.trunc(t))
|
||||
self.assertRaises(TypeError, math.trunc, t, 0)
|
||||
|
||||
def testIsnan(self):
|
||||
self.assertTrue(math.isnan(float("nan")))
|
||||
self.assertTrue(math.isnan(float("inf")* 0.))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue