##// END OF EJS Templates
fix bugs in coverage.py.
Vadim Gelfer -
r2067:3094becf default
parent child Browse files
Show More
@@ -348,12 +348,8 class coverage:
348 348 args = self.cexecuted.keys()
349 349 ignore_errors = settings.get('ignore-errors')
350 350 show_missing = settings.get('show-missing')
351 directory = settings.get('directory=')
352 omit = settings.get('omit=')
353 if omit is not None:
354 omit = omit.split(',')
355 else:
356 omit = []
351 directory = settings.get('directory')
352 omit = filter(None, settings.get('omit', '').split(','))
357 353
358 354 if settings.get('report'):
359 355 self.report(args, show_missing, ignore_errors, omit_prefixes=omit)
@@ -365,7 +361,8 class coverage:
365 361
366 362 def get_ready(self):
367 363 if self.usecache and not self.cache:
368 self.cache = os.environ.get(self.cache_env, self.cache_default)
364 self.cache = os.path.abspath(os.environ.get(self.cache_env,
365 self.cache_default))
369 366 self.restore()
370 367 self.analysis_cache = {}
371 368
@@ -408,6 +405,8 class coverage:
408 405 # save(). Save coverage data to the coverage cache.
409 406
410 407 def save(self):
408 # move to directory that must exist.
409 os.chdir(os.sep)
411 410 if self.usecache and self.cache:
412 411 self.canonicalize_filenames()
413 412 cache = open(self.cache, 'wb')
General Comments 0
You need to be logged in to leave comments. Login now