Changeset 189

Show
Ignore:
Timestamp:
03/08/07 10:32:47 (2 years ago)
Author:
mk
Message:

Skip pylint tests if pylint is not available.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tests/unit/test_index_pylint.py

    r186 r189  
    33import tempfile 
    44 
     5import nose 
     6 
    57import _path_cheesecake 
    68from _helper_cheesecake import DATA_PATH, Glutton, create_empty_file 
    79from cheesecake.cheesecake_index import IndexPyLint 
    8 from cheesecake.util import rmtree 
     10from cheesecake.util import command_successful, rmtree 
    911from cheesecake import logger 
    1012 
    1113 
    1214class TestIndexPyLint(object): 
     15    def setup(self): 
     16        # Skip whole test if pylint is not installed. 
     17        if not command_successful("pylint --version"): 
     18            raise nose.SkipTest 
     19 
    1320    def test_import_self(self): 
    1421        files_list = ['import_self.py']