Commits

Ned Batchelder  committed 24db72e

The --omit option was checking name instead of filename. This is much better! Fixes #33. Thanks, Danek Duvall

  • Participants
  • Parent commits 9910060

Comments (0)

Files changed (2)

 - "except" clauses with types are no longer incorrectly marked as branches:
   `issue 35`_.
 
+- The --omit option now works much better than before, fixing `issue 33`_.
+  Thanks, Danek Duvall.
+
 .. _issue 30: http://bitbucket.org/ned/coveragepy/issue/30
 .. _issue 31: http://bitbucket.org/ned/coveragepy/issue/31
 .. _issue 32: http://bitbucket.org/ned/coveragepy/issue/32
+.. _issue 33: http://bitbucket.org/ned/coveragepy/issue/33
 .. _issue 35: http://bitbucket.org/ned/coveragepy/issue/35
 
 

File coverage/codeunit.py

         filtered = []
         for cu in code_units:
             for prefix in prefixes:
-                if cu.name.startswith(prefix):
+                if cu.filename.startswith(prefix):
                     break
             else:
                 filtered.append(cu)