def METHOD_NAME(self):
    # test fix for seg fault reported in bpo-38588 part 2.
    class X:
        def __eq__(self,other) :
            list2.clear()
            return NotImplemented
    class Y:
        def __eq__(self, other):
            list1.clear()
            return NotImplemented
    class Z:
        def __eq__(self, other):
            list3.clear()
            return NotImplemented
    list1 = [X()]
    list2 = [Y()]
    self.assertTrue(list1 == list2)
    list3 = [Z()]
    list4 = [1]
    self.assertFalse(list3 == list4)