diff --git a/CHANGES.rst b/CHANGES.rst index 5272760a4..c5dba71d0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -24,7 +24,11 @@ want to know what's different in 5.0 since 4.5.x, see :ref:`whatsnew5x`. Unreleased ---------- -Nothing yet. +- On Python 3.8, try-finally-return reported wrong branch coverage with + decorated async functions (`issue 946`_). This is now fixed. Thanks, Kjell + Braden. + +.. _issue 946: https://github.com/nedbat/coveragepy/issues/946 .. _changes_504: diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index a89c3bfa6..109974a3d 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -80,6 +80,7 @@ Josh Williams Julian Berman Julien Voisin Justas Sadzevičius +Kjell Braden Krystian Kichewko Kyle Altendorf Lars Hupfeldt Nielsen diff --git a/coverage/parser.py b/coverage/parser.py index 70be0230d..e3e431490 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -610,7 +610,6 @@ def _line__Dict(self, node): return node.lineno _line__FunctionDef = _line_decorated - _line__AsyncFunctionDef = _line_decorated def _line__List(self, node):