diff options
-rw-r--r-- | CHANGES.txt | 12 | ||||
-rw-r--r-- | coverage/parser.py | 1 |
2 files changed, 9 insertions, 4 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 84be6db6..1de6e81d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,13 +2,17 @@ Change history for Coverage.py
------------------------------
-Version 3.2b3
--------------
+Version 3.2b3, 23 November 2009
+-------------------------------
- Fixed a memory leak in the C tracer that was introduced in 3.2b1.
-- The table of contents in the HTML report is now sortable. Thanks,
- `Chris Adams`_.
+- Branch coverage improvements:
+
+ - Branches to excluded code are ignored.
+
+- The table of contents in the HTML report is now sortable: click the headers
+ on any column. Thanks, `Chris Adams`_.
.. _Chris Adams: http://improbable.org/chris/
diff --git a/coverage/parser.py b/coverage/parser.py index 3e55ad6d..505ce1cf 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -466,6 +466,7 @@ class ByteParser(object): # This is "return None", but is it dummy? A real line # would be a last chunk all by itself. if chunks[-1].byte != penult.offset: + # Split the last chunk last_chunk = chunks[-1] last_chunk.exits.remove(-1) last_chunk.exits.add(penult.offset) |