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 vstinner
Recipients pablogsal, vstinner, xtreak
Date 2019-02-12.16:54:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549990483.83.0.257592392903.issue35961@roundup.psfhosted.org>
In-reply-to
Content
Extract of the crashing test:

    def test_cmp(self):
        ...

        class Exc(Exception):
            pass

        class BadCmp(object):
            def __eq__(self, other):
                raise Exc

        s1 = slice(BadCmp())
        s2 = slice(BadCmp())
        self.assertEqual(s1, s1)
        self.assertRaises(Exc, lambda: s1 == s2)   # <==== CRASH HERE

        ...

The latest change in test_slice.py has been made in 2016: 3 years ago.

Latest changes in Objects/sliceobject.c were refactoring related to header files (november 2018). The latest "significant" change was done in April 2018: "bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS".

I bet more on a recent change which is not directly related to slices... like the implementation of the PEP 572? It would help to know when the crash started to occur exactly (date + time).
History
Date User Action Args
2019-02-12 16:54:43vstinnersetrecipients: + vstinner, pablogsal, xtreak
2019-02-12 16:54:43vstinnersetmessageid: <1549990483.83.0.257592392903.issue35961@roundup.psfhosted.org>
2019-02-12 16:54:43vstinnerlinkissue35961 messages
2019-02-12 16:54:43vstinnercreate