mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -354,11 +354,6 @@ class BoolTest(unittest.TestCase):
|
|||
self.assertIs(type(False.real), int)
|
||||
self.assertIs(type(False.imag), int)
|
||||
|
||||
def test_always_is_integer(self):
|
||||
# Issue #26680: Incorporating number.is_integer into bool
|
||||
self.assertTrue(all(b.is_integer() for b in (False, True)))
|
||||
|
||||
|
||||
def test_main():
|
||||
support.run_unittest(BoolTest)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue