Fixed Python test by implementing RichCompare() for RepeatedCompositeContainer.

PiperOrigin-RevId: 447613334
pull/13171/head
Joshua Haberman 3 years ago committed by Copybara-Service
parent 459059e301
commit 3e75131bc1
  1. 2
      python/pb_unit_tests/reflection_test_wrapper.py
  2. 1
      python/repeated.c

@ -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__':

@ -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}};

Loading…
Cancel
Save