[issue44616] Incorrect tracing for "except" with variable
Barry A. Warsaw
report at bugs.python.org
Wed Jul 14 13:44:15 EDT 2021
Barry A. Warsaw <barry at python.org> added the comment:
I just retested my test case (see the coveragepy link below) with Python 3.10 git head and coveragepy git head, and I'm still seeing the misses only in Python 3.10:
---------- coverage: platform darwin, python 3.10.0-beta-4 -----------
Name Stmts Miss Branch BrPart Cover Missing
---------------------------------------------------------------------
flufl/lock/__init__.py 5 0 0 0 100%
flufl/lock/_lockfile.py 253 0 80 3 99% 412->415, 418->420, 535->exit
---------------------------------------------------------------------
The lines in question:
if is_locked:
try:
os.unlink(self._lockfile)
except OSError as error:
if error.errno not in ERRORS:
raise
# Remove our claim file.
try:
os.unlink(self._claimfile)
except OSError as error:
if error.errno not in ERRORS:
raise
I'm not sure whether coveragepy needs to be updated or whether there are other lurking bugs in Python 3.10. I'm reopening this issue until this is resolved.
----------
resolution: fixed ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44616>
_______________________________________
More information about the Python-bugs-list
mailing list