Changeset 249


Ignore:
Timestamp:
25-05-07 15:08:06 (6 years ago)
Author:
thomas
Message:
  • moap/test/test_bug_bugzilla.py:
  • moap/test/test_commands_doap.py: Fix for when RDF is not installed.
  • moap/vcs/darcs.py: Fix some pychecker warnings.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r248 r249  
     12007-05-25  Thomas Vander Stichele  <thomas at apestaart dot org> 
     2 
     3        * moap/test/test_bug_bugzilla.py: 
     4        * moap/test/test_commands_doap.py: 
     5          Fix for when RDF is not installed. 
     6        * moap/vcs/darcs.py: 
     7          Fix some pychecker warnings. 
     8 
    192007-05-25  Thomas Vander Stichele  <thomas at apestaart dot org> 
    210 
  • trunk/moap/test/test_bug_bugzilla.py

    r247 r249  
    4141    import RDF 
    4242except ImportError: 
    43     TestGst.skip = "No rdf module, skipping" 
     43    TestGstCsv.skip = "No rdf module, skipping" 
  • trunk/moap/test/test_commands_doap.py

    r239 r249  
    7878    def tearDown(self): 
    7979        os.chdir(self._cwd) 
     80 
     81try: 
     82    import RDF 
     83except ImportError: 
     84    TestDoapMach.skip = "No rdf module, skipping" 
     85    TestDoapUnspecified.skip = "No rdf module, skipping" 
  • trunk/moap/vcs/darcs.py

    r185 r249  
    4949        self.debug('%d versioned files' % len(versioned)) 
    5050 
    51         all = [] 
     51        allFiles = [] 
    5252 
    53         def walker(all, dirname, fnames): 
     53        def walker(allFiles, dirname, fnames): 
    5454            if not dirname.startswith(self.path): 
    5555                fnames = [] 
     
    6565                # darcs doesn't list directories as part of manifest 
    6666                if not os.path.isdir(os.path.join(dirname, fname)): 
    67                     all.append(os.path.join(reldirname, fname)) 
     67                    allFiles.append(os.path.join(reldirname, fname)) 
    6868 
    69         os.path.walk(self.path, walker, all) 
    70         self.debug('%d total files' % len(all)) 
     69        os.path.walk(self.path, walker, allFiles) 
     70        self.debug('%d total files' % len(allFiles)) 
    7171 
    7272        boringPath = os.path.join(self.path, '.darcs-boring') 
     
    7575            boringRegExps = open(boringPath).readlines() 
    7676 
    77         unversioned = [n for n in all if n not in versioned] 
     77        unversioned = [n for n in allFiles if n not in versioned] 
    7878        self.debug('%d unversioned files' % len(unversioned)) 
    7979 
Note: See TracChangeset for help on using the changeset viewer.