title: Disabling Python nosetests
body: <p>When using nosetests for Python it is possible to disable a unit test by  setting the test function's <code>__test__</code> attribute to false. I have implemented this using the following decorator:</p>
  
  <pre><code>def unit_test_disabled():
      def wrapper(func):
           func.__test__ = False
           return func
  
      return wrapper
  
  @unit_test_disabled
  def test_my_sample_test()
      #code here ...
  </code></pre>
  
  <p>However, this has the side effect of calling wrapper as the unit test. Wrapper will always pass but it is included in nosetests output. Is there another way of structuring the decorator so that the test will not run and does not appear in nosetests output.</p>