Terry J. Reedy added the comment:
This can only happen because of a hole in the tests.
test_bool.BoolTest.test_math appears to test every binary int op, including
bitwise, *except* %.
After
self.assertIsNot(False/1, False)
add
self.assertEqual(False%1, 0)
self.assertIsNot(False%1, False) # currently fails
self.assertEqual(True%1, 1)
self.assertIsNot(True%1, True)
test_int tests int() calls, not int math, so I don't know where the equivalent
tests on int math with subclasses are or would go.
----------
nosy: +terry.reedy
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27792>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com