1. Álvaro Justen - Turicas
  2. coverage.py

Commits

Ned Batchelder  committed 050473e

Omit_prefixes is now just 'omit'.

  • Participants
  • Parent commits ad14d63
  • Branches default

Comments (0)

Files changed (1)

File coverage/testplugin.py

View file
  • Ignore whitespace
 
         try: # try looking for an omit file
             omit_file = open(self.options.cover_omit)
-            omit_prefixes = [line.strip() for line in omit_file.readlines()]
-            report_args['omit_prefixes'] = omit_prefixes
+            omit = [line.strip() for line in omit_file.readlines()]
+            report_args['omit'] = omit
         except: # assume cover_omit is a ',' separated list if provided
             omit = self.options.cover_omit.split(',')
-            report_args['omit_prefixes'] = omit
+            report_args['omit'] = omit
 
         if 'report' in self.options.cover_actions:
             self.coverage.report(
 
     optparse.Option('--cover-omit', action='store',
                     metavar="PRE1,PRE2,...", default='',
-                    help=("Omit files when their filename path starts with "
-                         "one of these prefixes.")),
+                    help=("Omit files when their filename path matches one "
+                         "of these patterns.")),
 
     optparse.Option('--cover-outfile', action='store', metavar="OUTFILE",
                     help=("Write the XML report to this file. Defaults to "