aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_bool.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_bool.py')
-rw-r--r--Lib/test/test_bool.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_bool.py b/Lib/test/test_bool.py
index 7b3a3859e08..bc201e10ff2 100644
--- a/Lib/test/test_bool.py
+++ b/Lib/test/test_bool.py
@@ -354,6 +354,11 @@ 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)