This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients Mark.Shannon, barry, nedbat, pablogsal
Date 2021-07-14.17:44:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626284655.53.0.637746021757.issue44616@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-07-14 17:44:15barrysetrecipients: + barry, nedbat, Mark.Shannon, pablogsal
2021-07-14 17:44:15barrysetmessageid: <1626284655.53.0.637746021757.issue44616@roundup.psfhosted.org>
2021-07-14 17:44:15barrylinkissue44616 messages
2021-07-14 17:44:15barrycreate