py/objarray: Turn on MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE for memoryview.
And add corresponding tests. Fixes #5674 (comparison of memoryview against bytes).
This commit is contained in:
committed by
Damien George
parent
2d800c77a0
commit
3ccce89b83
@@ -573,6 +573,7 @@ const mp_obj_type_t mp_type_bytearray = {
|
||||
#if MICROPY_PY_BUILTINS_MEMORYVIEW
|
||||
const mp_obj_type_t mp_type_memoryview = {
|
||||
{ &mp_type_type },
|
||||
.flags = MP_TYPE_FLAG_EQ_CHECKS_OTHER_TYPE,
|
||||
.name = MP_QSTR_memoryview,
|
||||
.make_new = memoryview_make_new,
|
||||
.getiter = array_iterator_new,
|
||||
|
||||
Reference in New Issue
Block a user