def test_instanceSlots(self):
        classDefinition = (
            "class NotSlottedClass(object):\n"
            "    pass\n")

        exec classDefinition in self.m.__dict__
        inst = self.m.NotSlottedClass()
        inst.__slots__ = ['a']
        classDefinition = (
            "class NotSlottedClass:\n"
            "    pass\n")
        exec classDefinition in self.m.__dict__
        # Moving from new-style class to old-style should fail.
        self.assertRaises(TypeError, rebuild.updateInstance, inst)
link_or_copy(src:str, dst:str) -> None
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_rebuild.py/NewStyleTestCase.test_instanceSlots--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/system/windows.py/link_or_copy