<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -234,7 +234,7 @@ unittest-nonlabile: build
 # test if no errors would result if we force enabling of all states
 unittest-states: build
 	@echo &quot;I: Running unittests with all states enabled.&quot;
-	@PYTHONPATH=.:$(PYTHONPATH) MVPA_DEBUG=CHECK_STATES_ENABLED python mvpa/tests/main.py
+	@PYTHONPATH=.:$(PYTHONPATH) MVPA_DEBUG=ENFORCE_STATES_ENABLED python mvpa/tests/main.py
 
 # Run unittests with optimization on -- helps to catch unconditional
 # debug calls</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -226,7 +226,7 @@ if __debug__:
                    &quot;Checking in checking if clf was trained on given dataset&quot;)
     debug.register('CHECK_RETRAIN', &quot;Checking in retraining/retesting&quot;)
     debug.register('CHECK_STABILITY', &quot;Checking for numerical stability&quot;)
-    debug.register('CHECK_STATES_ENABLED', &quot;Forcing all states to be enabled&quot;)
+    debug.register('ENFORCE_STATES_ENABLED', &quot;Forcing all states to be enabled&quot;)
 
     debug.register('MAP',   &quot;*Mapper&quot;)
     debug.register('MAP_',  &quot;*Mapper (verbose)&quot;)</diff>
      <filename>mvpa/base/__init__.py</filename>
    </modified>
    <modified>
      <diff>@@ -222,7 +222,7 @@ class StateVariable(CollectableAttribute):
     def __init__(self, name=None, enabled=True, doc=&quot;State variable&quot;):
         # Force enabled state regardless of the input
         # to facilitate testing
-        if __debug__ and 'CHECK_STATES_ENABLED' in debug.active:
+        if __debug__ and 'ENFORCE_STATES_ENABLED' in debug.active:
             enabled = True
         CollectableAttribute.__init__(self, name, doc)
         self._isenabled = enabled</diff>
      <filename>mvpa/misc/attributes.py</filename>
    </modified>
    <modified>
      <diff>@@ -129,7 +129,7 @@ class StateTests(unittest.TestCase):
 
         proper.states.enable(['state2'])
         self.failUnlessEqual(Set(proper.states.names), Set(['state1', 'state2']))
-        if __debug__ and 'CHECK_STATES_ENABLED' in debug.active:
+        if __debug__ and 'ENFORCE_STATES_ENABLED' in debug.active:
             # skip testing since all states are on now
             return
         self.failUnless(proper.states.enabled == ['state2'])
@@ -169,7 +169,7 @@ class StateTests(unittest.TestCase):
     def testGetSaveEnabled(self):
         &quot;&quot;&quot;Check if we can store/restore set of enabled states&quot;&quot;&quot;
 
-        if __debug__ and 'CHECK_STATES_ENABLED' in debug.active:
+        if __debug__ and 'ENFORCE_STATES_ENABLED' in debug.active:
             # skip testing since all states are on now
             return
 
@@ -194,7 +194,7 @@ class StateTests(unittest.TestCase):
         proper   = TestClassProper()
         properch = TestClassProperChild(enable_states=[&quot;state1&quot;])
 
-        if __debug__ and 'CHECK_STATES_ENABLED' in debug.active:
+        if __debug__ and 'ENFORCE_STATES_ENABLED' in debug.active:
             # skip testing since all states are on now
             return
 </diff>
      <filename>mvpa/tests/test_state.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ffa7bc26d6a32e3199d5993368f2c590219c10e0</id>
    </parent>
  </parents>
  <author>
    <name>Yaroslav Halchenko</name>
    <email>debian@onerussian.com</email>
  </author>
  <url>http://github.com/yarikoptic/PyMVPA/commit/0562aa4aa9c44afa11d5118e85998d50e01c42db</url>
  <id>0562aa4aa9c44afa11d5118e85998d50e01c42db</id>
  <committed-date>2009-10-08T16:26:02-07:00</committed-date>
  <authored-date>2009-10-08T14:08:11-07:00</authored-date>
  <message>BF: renamed CHECK_STATES_ENABLED to ENFORCE_STATES_ENABLED

all CHECK_ get enabled in tests/main.py so it forces all states on as well --
that is not desired.  On the other hand -- such setting detects a plethora of
new issues; therefore it remains desired to run unittest-states</message>
  <tree>a4ada10e374b27bb7f594f4d9e91890a57f9bd84</tree>
  <committer>
    <name>Yaroslav Halchenko</name>
    <email>debian@onerussian.com</email>
  </committer>
</commit>
