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 bar.harel
Recipients bar.harel
Date 2019-11-21.15:00:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574348421.53.0.110066874407.issue38878@roundup.psfhosted.org>
In-reply-to
Content
Quick and small fix.

os.PathLike.__subclasshook__ does not check if cls is PathLike as abstract classes should.

This in turn causes this bug:

    class A(PathLike):
        pass

    class B:
        def __fspath__(self):
            pass

    assert issubclass(B, A)

I will fix the bug later today and push a patch over to python/cpython on GitHub.
History
Date User Action Args
2019-11-21 15:00:21bar.harelsetrecipients: + bar.harel
2019-11-21 15:00:21bar.harelsetmessageid: <1574348421.53.0.110066874407.issue38878@roundup.psfhosted.org>
2019-11-21 15:00:21bar.harellinkissue38878 messages
2019-11-21 15:00:21bar.harelcreate