Exemplo n.º 1
0
 def testVirtualProtectedDtorOnCppCreatedObject(self):
     '''Original protected virtual destructor is being called for a C++ created object.'''
     dtor_called = ProtectedVirtualDestructor.dtorCalled()
     for i in range(1, 10):
         pvd = ProtectedVirtualDestructor.create()
         del pvd
         self.assertEqual(ProtectedVirtualDestructor.dtorCalled(), dtor_called + i)
Exemplo n.º 2
0
 def testVirtualProtectedDtorOnCppCreatedObject(self):
     '''Original protected virtual destructor is being called for a C++ created object.'''
     dtor_called = ProtectedVirtualDestructor.dtorCalled()
     for i in range(1, 10):
         pvd = ProtectedVirtualDestructor.create()
         del pvd
         self.assertEqual(ProtectedVirtualDestructor.dtorCalled(), dtor_called + i)
Exemplo n.º 3
0
 def testVirtualProtectedDtor(self):
     '''Original protected virtual destructor is being called.'''
     dtor_called = ProtectedVirtualDestructor.dtorCalled()
     for i in range(1, 10):
         pvd = ProtectedVirtualDestructor()
         del pvd
         self.assertEqual(ProtectedVirtualDestructor.dtorCalled(), dtor_called + i)
Exemplo n.º 4
0
 def testVirtualProtectedDtor(self):
     '''Original protected virtual destructor is being called.'''
     dtor_called = ProtectedVirtualDestructor.dtorCalled()
     for i in range(1, 10):
         pvd = ProtectedVirtualDestructor()
         del pvd
         self.assertEqual(ProtectedVirtualDestructor.dtorCalled(), dtor_called + i)