def test_subclass(self):
        try:
            class C(bool):
                pass
        except __HOLE__:
            pass
        else:
            self.fail("bool should not be subclassable")

        self.assertRaises(TypeError, int.__new__, bool, 0)
dataset/ETHPy150Open babble/babble/include/jython/Lib/test/test_bool.py/BoolTest.test_subclass