mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Revert "bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)" (GH-22584)
This reverts commit 58a7da9e12
.
This commit is contained in:
parent
4f3c25043d
commit
4e0ce82058
16 changed files with 24 additions and 223 deletions
|
@ -1381,10 +1381,6 @@ class LongTest(unittest.TestCase):
|
|||
self.assertEqual(type(numerator), int)
|
||||
self.assertEqual(type(denominator), int)
|
||||
|
||||
def test_int_always_is_integer(self):
|
||||
# Issue #26680: Incorporating number.is_integer into int
|
||||
self.assertTrue(all(x.is_integer() for x in (-1, 0, 1, 42)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue