Update test_bool.py from 3.14.3

This commit is contained in:
ShaharNaveh committed 2026-02-13 13:36:33 +02:00
1 parent 9c72e32874
commit 8b99358339
1 file changed
+4
+4
View File
@@ -383,6 +383,10 @@ class BoolTest(unittest.TestCase):
__bool__ = None
self.assertRaises(TypeError, bool, B())
class C:
__len__ = None
self.assertRaises(TypeError, bool, C())
def test_real_and_imag(self):
self.assertEqual(True.real, 1)
self.assertEqual(True.imag, 0)