def test_subclass_extension_category(self):
        """ Category subclass does not extend base class.
        This test demonstrates that traits allows subclassing of a category
        class, but that the traits from the subclass are not actually added
        to the base class of the Category.
        Seems like the declaration of the subclass (BasePlusPlus) should fail.
        """
        try:
            x = self.base.pp
            self.fail(msg="base.pp should have thrown AttributeError "
                          "as Category subclassing is not supported.")
        except __HOLE__:
            pass

        basepp = BasePlusPlus()
        return
dataset/ETHPy150Open enthought/traits/traits/tests/test_category.py/CategoryTestCase.test_subclass_extension_category