mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Update test_bool.py from 3.14.3
This commit is contained in:
1 parent
9c72e32874
commit
8b99358339
1 file changed
+4
Vendored
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user