diff options
-rw-r--r-- | CHANGES.rst | 8 | ||||
-rw-r--r-- | coverage/collector.py | 5 | ||||
-rw-r--r-- | coverage/htmlfiles/style.css | 1 | ||||
-rw-r--r-- | doc/index.rst | 10 |
4 files changed, 15 insertions, 9 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index 8fba35bb..775c4566 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -22,11 +22,13 @@ Unreleased Shishov. - The HTML report now uses different monospaced fonts, favoring Consolas over - Courier. + Courier. The index page also has slightly different styling, to try to make + the clickable detail pages more apparent. .. _issue 440: https://bitbucket.org/ned/coveragepy/issues/440/yielded-twisted-failure-marked-as-missed -Version 4.1b2 --- 2016-01-23 + +Version 4.1b2 --- 2016-01-23 ---------------------------- - Problems with the new branch measurement in 4.1 beta 1 were fixed: @@ -43,7 +45,7 @@ Version 4.1b2 --- 2016-01-23 - The XML report now produces correct package names for modules found in directories specified with ``source=``. Fixes `issue 465`_. - + - ``coverage report`` won't produce trailing whitespace. .. _issue 465: https://bitbucket.org/ned/coveragepy/issues/465/coveragexml-produces-package-names-with-an diff --git a/coverage/collector.py b/coverage/collector.py index 3156b161..a296b227 100644 --- a/coverage/collector.py +++ b/coverage/collector.py @@ -38,10 +38,12 @@ class FileDisposition(object): def should_start_context(frame): + """Who-Tests-What hack: Determine whether this frame begins a new who-context.""" fn_name = frame.f_code.co_name if fn_name.startswith("test"): return fn_name + class Collector(object): """Collects trace data. @@ -326,6 +328,9 @@ class Collector(object): self._start_tracer() def switch_context(self, new_context): + """Who-Tests-What hack: switch to a new who-context.""" + # Make a new data dict, or find the existing one, and switch all the + # tracers to use it. data = self.contexts.setdefault(new_context, {}) for tracer in self.tracers: tracer.data = data diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index 4214af5b..186b085b 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -342,4 +342,3 @@ td.text { min-height: 3px; width: 100%; } - diff --git a/doc/index.rst b/doc/index.rst index 61f7ea94..ed779e29 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -68,13 +68,13 @@ not. The latest version is coverage.py 4.1b2, released January 23rd, 2016. It is supported on: - - * Python versions 2.6, 2.7, 3.3, 3.4, and 3.5. - + + * Python versions 2.6, 2.7, 3.3, 3.4, and 3.5. + * PyPy 2.4, 2.6, and 4.0 - + * PyPy3 2.4. - + **This is a pre-release build. The usual warnings about possible bugs apply.** The latest stable version is coverage.py 4.0.3, `described here`_. |