Previously we were skipping the ones with an empty first element,
because of a known shortcoming in finding the right OID. Now that we
scan the whole array to find all the elements' classes, it's the last
entry which might break dumping.
while 1:
rv = [self.make(spec) for i in range(length)]
- # TODO multirange lists fail binary dump if the first element is
+ # TODO multirange lists fail binary dump if the last element is
# empty and there is no type annotation. See xfail in
# test_multirange::test_dump_builtin_array
- if rv and isinstance(rv[0], Multirange) and not rv[0]:
+ if rv and isinstance(rv[-1], Multirange) and not rv[-1]:
continue
return rv