diff --git a/python/pb_unit_tests/reflection_test_wrapper.py b/python/pb_unit_tests/reflection_test_wrapper.py index bda58467cb..f9fdf6f756 100644 --- a/python/pb_unit_tests/reflection_test_wrapper.py +++ b/python/pb_unit_tests/reflection_test_wrapper.py @@ -39,8 +39,6 @@ SerializationTest.testCanonicalSerializationOrderSameAsCpp.__unittest_expecting_ # This is an implementation detail that users should not depend on. SerializationTest.testFieldDataDescriptor.__unittest_expecting_failure__ = True -ReflectionTest.testDeepCopy_proto2.__unittest_expecting_failure__ = True -ReflectionTest.testDeepCopy_proto3.__unittest_expecting_failure__ = True SerializationTest.testFieldProperties.__unittest_expecting_failure__ = True if __name__ == '__main__': diff --git a/python/repeated.c b/python/repeated.c index 5f32b0042a..8fca030703 100644 --- a/python/repeated.c +++ b/python/repeated.c @@ -681,6 +681,7 @@ static PyType_Slot PyUpb_RepeatedCompositeContainer_Slots[] = { {Py_mp_subscript, PyUpb_RepeatedContainer_Subscript}, {Py_mp_ass_subscript, PyUpb_RepeatedContainer_AssignSubscript}, {Py_tp_new, PyUpb_Forbidden_New}, + {Py_tp_richcompare, PyUpb_RepeatedContainer_RichCompare}, {Py_tp_hash, PyObject_HashNotImplemented}, {0, NULL}};