bpo-32424: Synchronize xml.etree.ElementTree.Element copy methods. by GPHemsley · Pull Request #5046 · python/cpython (original) (raw)
I dunno if this is a problem with the code coverage software or what, but it doesn't seem like this statement is getting hit by the coverage checker. Is it possible that one of these two has length zero?
I'll note that I personally prefer to use itertools.zip_longest
for tests like this, since zip
will just silently fail if one of the two iterators is a truncated version of the other - e.g. all(x == y for x, y in zip((1, 2, 3), (1, 2, 3, 4, 5)))
.