From 1d04bef2ed404e2988c47ecc835662819219c3d8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 19 Nov 2009 20:20:57 -0500 Subject: The --omit option was checking name instead of filename. This is much better! Fixes #33. Thanks, Danek Duvall --- CHANGES.txt | 4 ++++ coverage/codeunit.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 1ef464e..65fe8e8 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,9 +13,13 @@ Version 3.2b2 - "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 diff --git a/coverage/codeunit.py b/coverage/codeunit.py index 520774e..e310705 100644 --- a/coverage/codeunit.py +++ b/coverage/codeunit.py @@ -38,7 +38,7 @@ def code_unit_factory(morfs, file_locator, omit_prefixes=None): 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) -- cgit v1.2.1 From b5da9aeada208e30386582c31bc1f26f9aeac5ff Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 19 Nov 2009 20:42:08 -0500 Subject: That last change fixed two bugs. --- CHANGES.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 65fe8e8..e263dbd 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -13,9 +13,10 @@ Version 3.2b2 - "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. +- The --omit option now works much better than before, fixing `issue 14` and + `issue 33`_. Thanks, Danek Duvall. +.. _issue 14: http://bitbucket.org/ned/coveragepy/issue/14 .. _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 -- cgit v1.2.1 From b2fe99a7420675393a26a1894e4c3b51377b7690 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 19 Nov 2009 21:07:01 -0500 Subject: Polish up CHANGES. --- CHANGES.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e263dbd..f76aa6e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,16 +2,18 @@ Change history for Coverage.py ------------------------------ -Version 3.2b2 -------------- +Version 3.2b2, 19 November 2009 +------------------------------- -- Fixed some problems syntax coloring sources with line continuations and - source with tabs: `issue 30`_ and `issue 31`_. +- Branch coverage improvements: -- Classes are no longer incorrectly marked as branches: `issue 32`_. + - Classes are no longer incorrectly marked as branches: `issue 32`_. -- "except" clauses with types are no longer incorrectly marked as branches: - `issue 35`_. + - "except" clauses with types are no longer incorrectly marked as branches: + `issue 35`_. + +- Fixed some problems syntax coloring sources with line continuations and + source with tabs: `issue 30`_ and `issue 31`_. - The --omit option now works much better than before, fixing `issue 14` and `issue 33`_. Thanks, Danek Duvall. -- cgit v1.2.1 -- cgit v1.2.1 From 6879770e1355906a7f4ea6face08406402f2c6e8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 20 Nov 2009 05:29:01 -0500 Subject: Bump the version number. --- CHANGES.txt | 6 ++++++ coverage/__init__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index f76aa6e..2bc2a40 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,12 @@ Change history for Coverage.py ------------------------------ +Version 3.2b3 +------------- + +- None yet. + + Version 3.2b2, 19 November 2009 ------------------------------- diff --git a/coverage/__init__.py b/coverage/__init__.py index 9f399cb..7deeff5 100644 --- a/coverage/__init__.py +++ b/coverage/__init__.py @@ -5,7 +5,7 @@ http://nedbatchelder.com/code/coverage """ -__version__ = "3.2b2" # see detailed history in CHANGES.txt +__version__ = "3.2b3" # see detailed history in CHANGES.txt __url__ = "http://nedbatchelder.com/code/coverage" -- cgit v1.2.1 From 35c9700ab9fe7562b3ae6cde257c0e4a21262cdd Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 20 Nov 2009 05:32:33 -0500 Subject: rozza == Ross Lawley --- CHANGES.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 2bc2a40..63333d9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -50,7 +50,8 @@ Version 3.2b1, 10 November 2009 Version 3.1, 4 October 2009 --------------------------- -- Source code can now be read from eggs. Thanks, rozza. Fixes `issue 25`_ +- Source code can now be read from eggs. Thanks, Ross Lawley. Fixes + `issue 25`_. .. _issue 25: http://bitbucket.org/ned/coveragepy/issue/25 -- cgit v1.2.1