[cig-commits] r13147 - cs/cigma/trunk/tests/pytests
luis at geodynamics.org
luis at geodynamics.org
Wed Oct 29 15:10:47 PDT 2008
Author: luis
Date: 2008-10-29 15:10:47 -0700 (Wed, 29 Oct 2008)
New Revision: 13147
Modified:
cs/cigma/trunk/tests/pytests/test_locator.py
Log:
Emphasize the call to the superclass in the test example's __init__
The line is necessary because otherwise Python will not know
that it is subclassing from a BoostPython object (and subsequently,
any calls to a method declared as virtual will fail due to
a signature mismatch).
Modified: cs/cigma/trunk/tests/pytests/test_locator.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_locator.py 2008-10-29 22:10:46 UTC (rev 13146)
+++ cs/cigma/trunk/tests/pytests/test_locator.py 2008-10-29 22:10:47 UTC (rev 13147)
@@ -3,7 +3,7 @@
from _cigma import Locator
class MyLocator(Locator):
def __init__(self, n):
- Locator.__init__(self)
+ Locator.__init__(self) # Very Important!
self.pts = range(n)
def n_dim(self):
return 3
More information about the CIG-COMMITS
mailing list