Fixed Python test by implementing RichCompare() for RepeatedCompositeContainer.

PiperOrigin-RevId: 447613334
diff --git a/python/pb_unit_tests/reflection_test_wrapper.py b/python/pb_unit_tests/reflection_test_wrapper.py
index bda5846..f9fdf6f 100644
--- a/python/pb_unit_tests/reflection_test_wrapper.py
+++ b/python/pb_unit_tests/reflection_test_wrapper.py
@@ -39,8 +39,6 @@
 # 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 5f32b00..8fca030 100644
--- a/python/repeated.c
+++ b/python/repeated.c
@@ -681,6 +681,7 @@
     {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}};