Skip to content

Commit 46abc57

Browse files
committed
Tweaks for the 3.4 release.
1 parent d9aabad commit 46abc57

File tree

6 files changed

+36
-22
lines changed

6 files changed

+36
-22
lines changed

CHANGES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Change history for Coverage.py
33
------------------------------
44

55

6-
Version 3.4
7-
-----------
6+
Version 3.4 --- 19 September 2010
7+
---------------------------------
88

99
- The XML report is now sorted by package name, fixing `issue 88`_.
1010

coverage/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
"""
77

8-
__version__ = "3.4c1" # see detailed history in CHANGES.txt
8+
__version__ = "3.4" # see detailed history in CHANGES.txt
99

1010
__url__ = "http://nedbatchelder.com/code/coverage"
1111
if 'b' in __version__:

doc/changes.rst

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ Major change history for coverage.py
1515
:history: 20100725T211700, updated for 3.4.
1616
:history: 20100820T151500, updated for 3.4b1
1717
:history: 20100906T133800, updated for 3.4b2
18+
:history: 20100919T163400, updated for 3.4 release.
1819

1920
These are the major changes for coverage.py. For a more complete change
2021
history, see the `CHANGES.txt`_ file in the source tree.
2122

2223
.. _CHANGES.txt: http://bitbucket.org/ned/coveragepy/src/tip/CHANGES.txt
2324

2425

25-
Version 3.4 beta --- 6 September 2010
26-
-------------------------------------
26+
Version 3.4 --- 19 September 2010
27+
---------------------------------
28+
29+
Controlling source:
2730

2831
- BACKWARD INCOMPATIBILITY: the ``--omit`` and ``--include`` switches now take
2932
file patterns rather than file prefixes, closing `issue 34`_ and `issue 36`_.
@@ -38,18 +41,16 @@ Version 3.4 beta --- 6 September 2010
3841
to control what modules it measures. This can speed execution and reduce the
3942
amount of data during reporting. Thanks Zooko.
4043

41-
- Completely unexecuted files can now be included in coverage results, reported
42-
as 0% covered. This only happens if the --source option is specified, since
43-
coverage.py needs guidance about where to look for source files.
44-
45-
- Various warnings are printed to stderr for problems encountered during data
46-
measurement: if a ``--source`` module has no Python source to measure, or is
47-
never encountered at all, or if no data is collected.
48-
4944
- The reporting commands (report, annotate, html, and xml) now have an
5045
``--include`` switch to restrict reporting to modules matching those file
5146
patterns, similar to the existing ``--omit`` switch. Thanks, Zooko.
5247

48+
Reporting:
49+
50+
- Completely unexecuted files can now be included in coverage results, reported
51+
as 0% covered. This only happens if the --source option is specified, since
52+
coverage.py needs guidance about where to look for source files.
53+
5354
- Python files with no statements, for example, empty ``__init__.py`` files,
5455
are now reported as having zero statements instead of one. Fixes `issue 1`_.
5556

@@ -67,16 +68,30 @@ Version 3.4 beta --- 6 September 2010
6768
fixing `issue 65`_ and `issue 81`_, and the report is sorted by package
6869
name, fixing `issue 88`_.
6970

71+
- The XML report is now sorted by package name, fixing `issue 88`_.
72+
7073
- The precision of reported coverage percentages can be set with the
7174
``[report] precision`` config file setting. Completes `issue 16`_.
7275

76+
- Line numbers in HTML source pages are clickable, linking directly to that
77+
line, which is highlighted on arrival. Added a link back to the index page
78+
at the bottom of each HTML page.
79+
80+
Execution and measurement:
81+
82+
- Various warnings are printed to stderr for problems encountered during data
83+
measurement: if a ``--source`` module has no Python source to measure, or is
84+
never encountered at all, or if no data is collected.
85+
86+
- Doctest text files are no longer recorded in the coverage data, since they
87+
can't be reported anyway. Fixes `issue 52`_ and `issue 61`_.
88+
7389
- Threads derived from ``threading.Thread`` with an overridden `run` method
7490
would report no coverage for the `run` method. This is now fixed, closing
7591
`issue 85`_.
7692

77-
- Line numbers in HTML source pages are clickable, linking directly to that
78-
line, which is highlighted on arrival. Added a link back to the index page
79-
at the bottom of each HTML page.
93+
- Programs that exited with ``sys.exit()`` with no argument weren't handled
94+
properly, producing a coverage.py stack trace. This is now fixed.
8095

8196
- Programs that call ``os.fork`` will properly collect data from both the child
8297
and parent processes. Use ``coverage run -p`` to get two data files that can
@@ -85,9 +100,6 @@ Version 3.4 beta --- 6 September 2010
85100
- When measuring code running in a virtualenv, most of the system library was
86101
being measured when it shouldn't have been. This is now fixed.
87102

88-
- Doctest text files are no longer recorded in the coverage data, since they
89-
can't be reported anyway. Fixes `issue 52`_ and `issue 61`_.
90-
91103
.. _issue 1: http://bitbucket.org/ned/coveragepy/issue/1/empty-__init__py-files-are-reported-as-1-executable
92104
.. _issue 16: http://bitbucket.org/ned/coveragepy/issue/16/allow-configuration-of-accuracy-of-percentage-totals
93105
.. _issue 34: http://bitbucket.org/ned/coveragepy/issue/34/enhanced-omit-globbing-handling
@@ -102,6 +114,7 @@ Version 3.4 beta --- 6 September 2010
102114
.. _issue 85: http://bitbucket.org/ned/coveragepy/issue/85/threadrun-isnt-measured
103115
.. _issue 88: http://bitbucket.org/ned/coveragepy/issue/88/xml-report-lists-packages-in-random-order
104116

117+
105118
Version 3.3.1 --- 6 March 2010
106119
------------------------------
107120

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# The short X.Y version.
5050
version = '3.4'
5151
# The full version, including alpha/beta/rc tags.
52-
release = '3.4 beta 2'
52+
release = '3.4'
5353

5454
# The language for content autogenerated by Sphinx. Refer to documentation
5555
# for a list of supported languages.

doc/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ coverage.py
1515
:history: 20100725T211700, updated for 3.4.
1616
:history: 20100820T151500, updated for 3.4b1.
1717
:history: 20100906T134700, updated for 3.4b2.
18+
:history: 20100919T163500, updated for 3.4 release.
1819

1920
Coverage.py is a tool for measuring code coverage of Python programs. It
2021
monitors your program, noting which parts of the code have been executed, then
@@ -24,7 +25,7 @@ Coverage measurement is typically used to gauge the effectiveness of tests. It
2425
can show which parts of your code are being exercised by tests, and which are
2526
not.
2627

27-
The latest version is 3.4 beta 2, released 6 September 2010.
28+
The latest version is 3.4, released 19 September 2010.
2829
It is supported on Python 2.3 through 3.2 alpha 2.
2930

3031

doc/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ If all went well, you should be able to open a command prompt, and see
5858
coverage installed properly::
5959

6060
$ coverage --version
61-
Coverage.py, version 3.4b2. http://nedbatchelder.com/code/coverage/3.4b2
61+
Coverage.py, version 3.4. http://nedbatchelder.com/code/coverage

0 commit comments

Comments
 (0)